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 9046957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T11:47:04+00:00 2026-06-16T11:47:04+00:00

I am trying to use d3js to recreate the chart below I have been

  • 0

I am trying to use d3js to recreate the chart below

I have been trying to follow along with this question D3js – Creating and easily updating a multi-line chart but I am missing some fundamentals that seem to be assumed with everything related to d3js documentation:

  1. How does d3js actually draw anything? Where does it actually loop through the dataset?
  2. domain and range, okay this is my fault, I need to go over graphing basics, but I had assumed d3 would take care of that, in this example what does this actually mean?

    var w = 25,
    h = 200;
    
    var x = d3.scale.linear()
       .domain([0, 1])
       .range([0, w]);
    

What is this actually telling the d3.scale.linear method?

3) ultimately I would like to create the graph above given data that goes from 1 – 100 (or higher), and with the Y axis increasing as the numbers go higher and the X axis increasing as the date goes further out. How would that data even be formatted, in a key value pair?

4) does d3 simply stack all the JS instructions up like in layers? this is an extension of 1) , I don’t really get how it renders anything. Something about the SVGs

  • 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-06-16T11:47:06+00:00Added an answer on June 16, 2026 at 11:47 am

    I’d recommend that you take a look at some of the d3 tutorials to gain a better understanding of what’s going on. Concerning your specific questions, see below.

    1. It never loops, it works by binding data to (potentially non-existant) elements and operating on selections (i.e. subsets) of changed, new and deleted elements. See this tutorial for example.
    2. The d3.scale.* methods make graph scales. That is, they map input values to output values (the coordinates within your graph). d3.scale.linear() creates a linear scale, as the name suggests.
    3. You can format the data any way you want really. Again, have a look at the tutorials for examples.
    4. See 1.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying use the edit_post_link() function to contain an image. All of
I have been trying use zenity with standard re-direction in a shell script, something
I'm trying to learn how to use the force.layout features in D3.js and have
I am trying use gem tire to search in my application. I have tables
Hi I'm trying use a datepicker on a field I have. I'm trying to
I am need paint my image. I'm trying use JQuery in here this link:
I'm trying out d3js and I have a problem with getting my first basic
I'm trying use Places API from Google frmo a node.js server This is the
I am trying use MySql and Entity Framework, using Connector/Net 6.1 with this as
I'm trying use to selenium with firefox on CentOS from command line like this:

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.