Replies: 1 comment 1 reply
-
Just set the min/max of the x-axis and have the labels array contain all the values. The min/max can be defined as applyDateFilter(){
this.myChart.scales.x.min = parseInt(this.from);
this.myChart.scales.x.max = parseInt(this.toMonth);
this.myChart.update();
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I am working on a chart that capable to filter my data according to the selected. the code that im working with didnt actually generate my intended result.
this is the whole code that im using
this is the image before i apply filter
after filter applied.
the problem with the filter code that i tried was that, it didnt carry over the value on the yaxis that i create. it simply slice the yaxis along with its value.
i hope you can help me getting a solution for this functions
Beta Was this translation helpful? Give feedback.
All reactions