terezka / elm-charts

Create SVG charts in Elm.
https://www.elm-charts.org
BSD 3-Clause "New" or "Revised" License
711 stars 67 forks source link

X-Axis in Histograms in Project-Tear-Apart #64

Closed anagrius closed 3 years ago

anagrius commented 7 years ago

Looking at the new implementation of Histograms there seems to be a direct relation between the labels/ticks on the X-axis and the bars. In my opinion this should not always be the case.

Take time series or datasets with very large numbers in the X-range. Here you want to find humanly readable/reference-able values like "Jan 2017" or "5M" instead of "Jan 3rd 2017" and "5.010.014".

This can mean that the tick will end up in the middle of a bar and not the edges and we must be able to control that.

This does not seem to be possible with the new implementation. Or am I wrong?