Jump to content
JChartFX Community
  • 0

Loading different datasets on X Axis


ahmed24

Question

 I'm using jchartFX but on my horizontal X Axis, all the data may not start on the same date. Here is what I have so far:

 

var data = [

{ "Date": "13 Nov 2013", "User A": 7, "User B": 6, "User C": 5},
{ "Date": "14 Nov 2013", "User A": 8, "User B": 7, "User C": 4},
{ "Date": "18 Nov 2013", "User A": 9, "User B": 8, "User C": 6}

];

 

But User B data doesnt start  until the second date, but leaving User B data out of the first line makes the script completely ignore user B. And user C only has data for the third date 18 Nov, and User A has data for all 3 dates.

I've tried lots of combinations but just cannot get it to work. Can anyone help?

Thanks.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...