gionkunz / chartist-plugin-threshold

Threshold Plugin for Chartist.js
Do What The F*ck You Want To Public License
29 stars 38 forks source link

Issues with certain datasets on bar graphs #7

Open ogenthe opened 7 years ago

ogenthe commented 7 years ago

I am having an issue with certain series values causing some display issues. Certain datasets seem to work fine, wile others cause the values to be grouped together on the X axis, making the graph not display correctly. I am unable to figure out any consistancy as to when it works and when it doesn't.

Example of non-working code here: https://jsfiddle.net/up4af8ad/5/

Working datasets: series: [[3, 0, 4, 5, 6, -2, -1, -4, -6, 6, -2, -1, -4, 2, 3, -1, -2, 4, 2]] series:[[0],[0],[0],[0],[0],[0],[0],[0],[0],[-1],[-1],[-1],[0],[0],[0],[0],[0],[0]]

Non-working datasets: series: [[1],[-1],[0],[3],[-3],[2],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0],[0]] series: [[0],[1],[-4],[0],[-1],[0],[1],[1],[1],[-1],[-1],[0],[0],[0],[0],[0],[0],[0]]