chartist icon indicating copy to clipboard operation
chartist copied to clipboard

Interpolating X-axis Labels

Open thijssmudde opened this issue 7 years ago • 1 comments

Hello, Im Trying to build an elevation profile with chartist, but I think I might have hit a limit with the API. Is it possible to automatically interpolate the labels for the chart based on my data?

I can feed the labels and elevation, but the labels are all the way on the bottom left. screen shot 2017-07-12 at 19 51 42

The data looks like this:

[ { "x": 0.9878496330053217, "y": 13.97893524169922 }, { "x": 1.0041204813282845, "y": 13.95929145812988 }, { "x": 1.0252231341556972, "y": 13.62137603759766 }, { "x": 1.0857809687540954, "y": 12.28152847290039 }, { "x": 1.943662971285518, "y": 14.33559703826904 }, { "x": 2.076852557325997, "y": 14.82799530029297 }, ]

Full data sample: https://gist.github.com/fullhdpixel/15cc2910ec68ec05c9edebd016b7649a

thijssmudde avatar Jul 12 '17 17:07 thijssmudde

Hello @fullhdpixel 👋

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 question is still relevant to you so we can further look into it!

Arantiryo avatar Nov 03 '22 12:11 Arantiryo