Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7622199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:23:34+00:00 2026-05-31T04:23:34+00:00

I am trying to learn D3.js javascript library. When I try to run the

  • 0

I am trying to learn D3.js javascript library. When I try to run the below code I get “Origin null is not allowed by Access-Control-Allow-Origin” error. Source file and the file I am trying to load (bolliger-mabillard.csv) are both in same folder. I am running it on Mac using Google Chrome. How do I force Chrome to load this csv file ?

function init() {

    d3.csv("http://localhost/~vikalpjain/bolliger-mabillard.csv",function(data){
        vis.append("svg:g")
        .attr("class", "x axis")
        .attr("transform","translate(0," + (h-MARGINS.bottom) + ")")
        .call(xAxis);

        vis.append("svg:g")
        .attr("class" ,"y axis")
        .attr("transform", "translate(" + (MARGINS.left) + ",0)")
        .call(yAxis);

        update ();
    })
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T04:23:36+00:00Added an answer on May 31, 2026 at 4:23 am

    If you’re running your example on your own server try to replace localhost by 127.0.0.1, this is because the domain name has to be exactly the same to the server you are querying.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to learn javascript i have this code: x=x.replace(/^\s+|\s+$/g,); can i have
Disclaimer: I am trying to learn javascript. I am not a clever man. So,
I'm trying to learn about this feature of javascript I keep seeing in code,
Currently, I'm trying to learn Javascript by writing my code in Gedit then attempting
I'm currently trying to learn OO Javascript so I can write some cleaner code.
Im trying to learn javascript by tracing through some code at the moment, I
I am trying to learn Javascript. Here I am confused with the following code.
I'm trying to get to learn som javascript/jQuery stuff, and I'm really struggling with
Hi I have been trying to learn Javascript using codeacademy.com and I have reached
I'm trying to learn jquery, I've some basics of javascript. I've written this piece

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.