Jump to content
JChartFX Community

Search the Community

Showing results for tags 'line chart'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • jChartFX
    • General Questions
    • jQuery/jQuery UI
    • Styling and Aesthetics

Calendars

There are no results to display.


Found 2 results

  1. NULL data in line chart

    Good day, I'm trying to set up a line chart where I'm showing a change in data over time by person, but I want to account for if there is no data registered (which would show a break in the line). I'm using PHP on the back-end, so I create my array where I initialize each person to NULL, then when I loop through I fill in for each person that does have data. The problem is, if the first person in the array that makes it back to the front-end has null data, then the chart won't build... I just get a default "Series1" label and a straight line across 0. If I have people that have some data, and then others with nulls it works fine, but I'm trying to figure out if there is a way around this, or if there is another value I can pass in to show "no data" so I get the breaks in the line without resorting to using a 0 value (which would be a good thing in this case, higher numbers are bad so 0 would be a false positive). Thanks for any help/ideas
  2. 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? thanks, Mat
×