I am currently creating an analytics webapp and evaluating jChartFX for it. Most of the things we need can be done through the API but there is a feature that we need but could not figure out whether it would be possible or not:
The task would be to display a line chart with multiple series that does not have data for all points in all series. The required behaviour would be to not to show that section of the series where data is not available and show it if data is present for it. Is there a way to do this? do you plan to add this functionality?
The best way to do this would be a special value in the series similar to a not_a_number notation in the json for the missing data like:
E.G. : using one of the samples from the API, I would like to pass data which is not complete for all series, and has NaN (which I know is not legal in javascript) as sign of missing data:
var items =[{ "Month":"Jan", "White":12560, "Red":23400, "Sparkling":34500 },{ "Month":"Feb", "White": NaN -- or should be null ?? "Red":21000, "Sparkling":38900 },{ "Month":"Mar", "White":16700, "Red":17000, "Sparkling":42100 },{ "Month":"Apr", "White":12000, "Red":19020, "Sparkling":43800 }];
Is there any mechanism of API calls that can do this or mimic this behavior by turning off sections of a line?
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.
Question
Matyooo
"Month": "Jan",
"White": 12560,
"Red": 23400,
"Sparkling": 34500
}, {
"Month": "Feb",
"White": NaN -- or should be null ??
"Red": 21000,
"Sparkling": 38900
}, {
"Month": "Mar",
"White": 16700,
"Red": 17000,
"Sparkling": 42100
}, {
"Month": "Apr",
"White": 12000,
"Red": 19020,
"Sparkling": 43800
}];
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.