score:1
You're forcing a min
, a max
, and a stepSize
that don't work together. The auto-scaling algorithm is doing its best achieve what you ask, but something has to give.
If you really want it work cleanly you need to ensure the range (max
-min
) is cleanly divisible by the stepSize
. E.g.:
40-5 = 35
35/7 = 5
5 is a whole number, so the scale will work.
35/8 = 4.375
4.375 isn't a whole number so the scale won't work.
If you make max
45 then
45-5 = 40
40/8 = 5
Again, 5 is a whole number and the scale will work.
Source: stackoverflow.com
Related Query
- Chart.js stepSize not working with min
- Chartjs not working with d3 from csv source
- yAxes not working with min max option
- Chart JS not working with date
- Chartjs with Vue, Bar Chart Border Radius not working
- Chart JS not working with Phonegap
- Legend color not working with randomly generated background colors in chartjs pie chart
- chart js download to png with canvas.toDataURL() not working in IE and firefox
- Chart JS not working with Dynamic Data
- Why chart is not working with Bootstrap Modal?
- Using CSS variables (color) with chart.js - "var(--primaryColor)" not working
- Bootstrap grid not working with canvas
- Series Details Not Showing in Angular Chart with Charts.js
- Time Series Line chart js in react not working
- Chart JS not showing On hover with small data
- Click event of stacked line chart not working
- chartjs-plugin-zoom not working with my React project
- ChartJS - radar chart options not working
- Bubble Chart in Chartjs not working
- Android: WebView with JavaScript for Chart.js not working properly
- Css style not working well when resizing chart height in angular application
- code works fine on jsfiddle but one function is not working on website
- Doughnut Chart not displaying data with Chart Js and Backbone js
- Why is chart.js not working with angular JS
- in chart js tooltip font size is not working
- Bootstrap modal not working with chartjs line graph
- Background color of the chart area in chartjs not working
- Chart.js bubble chart pointStyle not working
- Charts.js - Colors for stacked bar on multi-series line/bar chart are not working
- Bar chart with min height and zero values - ChartJs
More Query from same tag
- Chart JS not showing all data
- ChartJS hover/tooltips: selecting the correct points in the datasets based on x-value
- Get bar value when onClick Reactjs
- ChartsJS Annotations Plugin - Can you create a tooltip to accompany an annotation?
- Multi Line Chart.js with two Y-Axes
- angular 7 how to draw dynamic number of charts
- How could I implement chartjs-plugin-datalabels in chartjs-node-canvas?
- Laravel - Bootstrap Javascript's conflict with Chart.js
- ChartJS - zIndex value for points/tooltips?
- Increase space between legend and chart
- Type error in using chartjs and tc-angular-chartjs
- Chart.js How to make more space between doughnut inside doughnut?
- Chart.js - Multiple JSON data object array [{x: Date, y: count}....] representing each dataset of the chart
- Chart.js scatter/bubble pointstyle custom text
- make chartjs legend labels tabbable
- Same bar different color / One bar with many colors
- Why do Bar Pie Chart values not line up?
- Chart.js automatic chosen scale value
- Using click event handler prevents tooltips from displaying on hover
- ChartJS multiple annotations (vertical lines)
- Horizontal stacked angular bar charts
- Line chart disable interpolation
- ChartJS - Different color per data point
- Load Chart.js tooltip information asynchronously
- ChartJS – Set baseline above zero
- Make a chart clickable when placed under another SVG <View>
- Can't get data into my Javascript function using Django
- ChartJS v3 Migration: how to define annotation plugin?
- ChartJS: How to set fixed Y axis max and min
- Why prettier put a comma ',' at the last element of the object