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).
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
JohnDeery
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
Link to comment
Share on other sites
4 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.