Replies: 2 comments
-
Either write a lot of code to handle the labels, or use time scale. Here's an examples using time scale + zoom plugin (not a bar chart though): |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you for your suggestion @kurkle I must try this. But can you give us some idea how can I customize that in chart.js with custom code? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello folks,
See the image bellow -
I want to change the x-axis labels like when someone filter out by
week
then x-axis labels will change by week day name likeSAT SUN MON TUE... etc
, when filter bymonth
then the x-axis labels will show past 30/31 days like1 2 3 4 5 6 7 8 ... 31
, and when filter byyear
then x-axis labels will change by month name likeJAN FEB MAR APR MAY JUN JUL........ DEC
as well.And also there will be a custom date changer field when user choose range of date then the chart will filter data according to the date range they choose.
How can I do that ?? Also It'll be good if there available any ready plugin or ready GIST available in Github.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions