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

  • SEARCH
  • Home
  • 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 8703099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T02:48:10+00:00 2026-06-13T02:48:10+00:00

I’ve checked the various tutorials, and can’t find my use case covered. Here is

  • 0

I’ve checked the various tutorials, and can’t find my use case covered.

Here is a subset of my dataset, in the form of CSV:

Provider,Service date,Unique patients seen
10800,2007-12-03,1
10800,2008-03-21,9
10800,2008-04-16,3
10800,2008-04-18,6
11451,2008-06-27,24
11451,2008-07-10,1
11451,2008-07-14,31
11451,2008-07-15,6
12980,2008-06-17,24
12980,2008-06-27,14
12980,2008-06-28,24
13907,2008-05-04,23
13907,2008-05-05,20
13907,2008-05-08,6
14618,2008-08-27,27
14618,2008-09-04,21
14618,2008-09-05,20

What I would like is for there to be a series for each unique provider, with that series having its X axis as the service date, and Y axis as patients seen.

So far, I’ve looked at the multi-series line chart tutorial, but I can’t convince it to use the data I have instead of columns as it does now.

Any advice or readings?

tarek : )

  • 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-13T02:48:11+00:00Added an answer on June 13, 2026 at 2:48 am

    You can see a working example at http://jsfiddle.net/YHW6H/1/.

    I did the following to coerce your data a bit. You’ll want to use d3.csv to read in your csv file, but I hard coded the values for the example.

    // you would use d3.csv('filename.csv', function (data) {...})
    // in order to populate the data variable, I'm just hard coding it here
    
    var data = [
        {Provider:'10800', 'Service Date': '2007-12-03', 'Unique patients seen':'1'},
        {Provider:'10800', 'Service Date': '2008-03-21', 'Unique patients seen':'9'},
        {Provider:'10800', 'Service Date': '2008-04-16', 'Unique patients seen':'3'},
        {Provider:'10800', 'Service Date': '2008-04-18', 'Unique patients seen':'6'},
        {Provider:'11451', 'Service Date': '2008-06-27', 'Unique patients seen':'24'},
        {Provider:'11451', 'Service Date': '2008-07-10', 'Unique patients seen':'1'},
        {Provider:'11451', 'Service Date': '2008-07-14', 'Unique patients seen':'31'},
        {Provider:'11451', 'Service Date': '2008-07-15', 'Unique patients seen':'6'},
        {Provider:'12980', 'Service Date': '2008-06-17', 'Unique patients seen':'24'},
        {Provider:'12980', 'Service Date': '2008-06-27', 'Unique patients seen':'14'},
        {Provider:'12980', 'Service Date': '2008-06-28', 'Unique patients seen':'24'},
        {Provider:'13907', 'Service Date': '2008-05-04', 'Unique patients seen':'23'},
        {Provider:'13907', 'Service Date': '2008-05-05', 'Unique patients seen':'20'},
        {Provider:'13907', 'Service Date': '2008-05-08', 'Unique patients seen':'6'},
        {Provider:'14618', 'Service Date': '2008-08-27', 'Unique patients seen':'27'},
        {Provider:'14618', 'Service Date': '2008-09-04', 'Unique patients seen':'21'},
        {Provider:'14618', 'Service Date': '2008-09-05', 'Unique patients seen':'20'}    
    ];
    
    // first we need to coerce the data into the right formats and make the
    // names a little more sane
    data = data.map( function (d) { 
        return { 
          provider: +d.Provider,   // the + sign will coerce strings to number values
          date: new Date(d['Service Date']),
          patients: +d['Unique patients seen'] }; 
    });   
    
    // then we need to nest the data on Provider since we want to only draw one
    // line per provider
    data = d3.nest().key(function(d) { return d.provider; }).entries(data);
    

    Unfortunately the data you provided wasn’t that interesting to graph since the providers didn’t really overlap. Once you get all your data loaded it should look nicer 🙂

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

Sidebar

Related Questions

I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a text area in my form which accepts all possible characters from
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out

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.