score:-1

i am not sure there will be an option on chart.js.

one way to deal with it is to render line charts initially and then switch the type to 'bar' when zoomed into certain date ranges.

depending on the type of data, you could also group up the data by summing (or averaging) the data by day (or week or month). then pass it into the chart and the time series option should be able to display the x axis dates in a more sensible manner.

otherwise you will have to look into more power charting libraries that can handle and manipulate bigger datasets like amcharts: https://www.amcharts.com/demos/stock-chart-candlesticks/

or look into using d3 that is highly customisable, but a bit more complex to work with.


Related Query

More Query from same tag