chartjs-plugin-streaming icon indicating copy to clipboard operation
chartjs-plugin-streaming copied to clipboard

How to give custom X-Axis labels?

Open mesameen opened this issue 6 years ago • 1 comments

Thanks for the wonderful plugin. How to give custom X-Axis labels. I want to give x-axis labels with always 1 minute gap, could you help me to achieve it.

I'm using react js, x-axis labels are taking milliseconds also, due to that there are much more cartesian grid columns exists, totally graph looks as conjusted, If we make x-axis labels with just up to minutes, it's always clean. Good part is in Normal Javascript, it's working fine by considering up to minutes, but in react it's taking up to milliseconds. Could you provide any solution for it. You can find the working example [https://codesandbox.io/s/material-demo-j1h1m]

mesameen avatar Jan 08 '20 13:01 mesameen

I can see the below warning in console.

time scale: "time.format" is deprecated. Please use "time.parser" instead

mesameen avatar Jan 09 '20 07:01 mesameen