chartist icon indicating copy to clipboard operation
chartist copied to clipboard

FixedScaleAxis plotting data in axis.

Open davidorme opened this issue 6 years ago • 2 comments

Hi,

I'm trying to use FixedScaleAxis to reduce the number of axis labels and gridlines on a Chartist.Line plot:

http://jsbin.com/tahitugude/1/edit?html,js,output

As you can see, all the points are shown all the way over on the left hand side of the chart window in the axis. My low value for the axis was 1500, and I initially thought that it was something to do the axis labels being handled as an indexed array (rather than as x coordinates). However, changing the low axis to include 0 - so the axis would include the 0-24 index of the values - doesn't seem to change where the values are plotted.

My guess is that the values are still being plotted according to their index, but maybe using the underlying coordinate system for setting up the window?

Thanks, David

davidorme avatar Jun 05 '18 18:06 davidorme

Hello @davidorme 👋

Chartist has recently been updated to version 1.0 with some new exciting changes like ESM and TypeScript support. The migration guide can be found right here.

Please let me know if the issue is still relevant to you so we can further investigate it!

Arantiryo avatar Oct 29 '22 10:10 Arantiryo

Hi @Arantiryo - thanks for checking back. This isn't relevant to me any more, so I'm happy to close this

davidorme avatar Nov 01 '22 10:11 davidorme