Closed pghalliday closed 5 years ago
Thanks for reporting! Will fix asap!
I'm also getting a flat line with a NaN when the numbers are really small:
[0.4000000189989805,0.20000000949949026,0.3000000142492354,0.19999995129182935,0.3000000142492354,0.10000000474974513,0.3000000142492354,0.10000000474974513,0.10000000474974513]
Result calling a simple char.plot()
:
NaN ┼────────
Same issue..
I have the same problem
When I try to plot a chart with an array of values such as
[100, 100, 100]
, eg.I get the following error
This seems to be due to the way the number of rows are calculated based on the range (which in this case I presume is calculated to zero). The same error occurs if I supply an empty array or an array with just 1 value. I think a possible fix would be to define a default range if one cannot be sensibly calculated. This should probably be added to the options in some way.
This impacts me as I'm starting with an empty chart and adding values over time. For now I have worked around it by ensuring that the range is non-zero before plotting. However this leads to an odd corner case where the last
n
entries for a chart that only plotsn
entries (due to screen width) are all equal (even if previous entries are not) then the chart cannot be updated.