Home › forums › Using CanvasJS › line chart – x-axis points exceeds pixels on screen chart; how is it reduced? › Reply To: line chart – x-axis points exceeds pixels on screen chart; how is it reduced?
Manoj, Thank you but this doesn’t quite answer my question. Let’s go with your example of 10,000 data points and 1,000 pixels to display it with values 10-19 “overlapped”. Let’s say they have values [3, 3, 3, 5, 5, 5, 5, 7, 7, 7]. Should I expect to see a vertical line (1 pixel wide) ranging from y-axis value 3 to y-axis value 7? That would include values 4 and 6 that were not in the original set. There is no easy or perfect way to do this and I’m not trying to sharpshoot the software, I just need a detailed answer to give our stakeholders.
I kinda sorta think it picks a value from that set but does not show the range or a mean or anything based on an initial observation of this. I had a huge data set that I charted and it looked fine then I cut it down and it was still large but it showed some outlier values that would have been captured in a range or average approach. Maybe it just picks the first one of the set, in this example a value of 3, then skips the rest? Then, if I trimmed my dataset from 10,0000 to 2,000, it would be “binning” or grouping them into two value sets and I’d expect to see the first/last of them.
I’m not interested in Zoom features or anything in this case–just want the details on how it gets the huge (too big) set of data down to the viewable chart.
Thanks for investigating this. Much appreciated.