score:1
Accepted answer
Your code meets the requirements for Chart.js 2.x
but since you're using Chart.js 3.5.1
, scales
needs to be changed as follows.
scales: {
y: {
min: 0,
max: 100,
ticks: {
stepSize: 20
}
}
},
Source: stackoverflow.com
Related Query
- Setting up min and max in chartjs did not work
- Chartjs v2.5 - only show min and max on scale, absolute positioning on scale
- Chartjs and ChartDataLabels does not work in mdb5 pro version 2
- ChartJS automatically scaled chart has undefined min and max
- Setting min and max values chart.js
- How to set min max for x axis depend on data with Chartjs and Spring Boot?
- ChartJs: x-axes min and max value not working
- Chartjs gradient background color based on min and max values
- I am using chart js to draw a chart. I did everything right but i don't know why the x axis and y axis label is not comming in chart. code below
- min and max tag is not showing in chart chart.js
- Boxplot chartjs make min and max dynamic by leaving some space on both side
- How to set max and min value for Y axis
- ChartJS: How to set fixed Y axis max and min
- Chart.js timescale: set min and max on xAxes
- ChartJS canvas not displaying rgba colors in IE, Safari and Firefox
- Hide min and max values from y Axis in Chart.js
- Chart.js - Setting max Y axis value and keeping steps correct
- Chartjs: how to show only max and min values on y-axis
- Chartjs not rendering chart and no error thrown
- How do I force Chart.js axes min and max with react-chartjs-2?
- Setting Common labels and background color common for all the charts in ChartJs
- Chartjs not working with d3 from csv source
- zeroLineColor and zeroLineWidth not working for the x-axis in Chartjs
- How to set max smaller than min in ChartJS
- yAxes not working with min max option
- ChartJS not work in .php loaded by jquery .load() (AJAX)
- Render chartjs and export image to data not in the DOM
- Charts.js scales yaxes ticks min max doesnt work
- How to set the xAxes min and max values of time cartesian chart in Chart.js
- Bar chart with min height and zero values - ChartJs
More Query from same tag
- when click legend item in chart.js my bar is hiden but value of bar not hide
- Error on Chart.js with Electron - Failed to create chart: can't acquire context from the given item
- How to get rid of axis lines in ChartJS?
- Chartjs 3.5.0 - Radar Chart - Converting the labels to images
- Chart.js causes Angular 2 error
- dynamically update Chart.js draw line chart dataset data
- Vertical Bar Chart not displaying Correctly
- Multi Level Color in Doughnut Chart in ng2-charts
- Chart.js responsive css size
- How do I change the colours of specific labels in ng2-charts?
- How to pass data in Laravel with Chart.js
- Values on Y-axis disappear (hide under labels)
- Negative bar chart of highcharts in chartjs
- Black chart from chartjs-node-canvas
- ChartJS: Is this horizontal stacked bar and line graph multiaxis chart even possible?
- How to ignore same values on ChartJs?
- How to change the fontFamily of the labels and remove the grid in chart.js
- How to set up a simple pie chart using React in ChartJS on codesandbox
- ChartJS timeline graph with events
- chart.js streaming data plugin data format or config error
- Chartjs Nested Pie/Doughnut charts
- How to Change the Y axis of an Primefaces 7.0 ChartJS Linechart with Java?
- How do I customise doughnut chart using chart.js
- Display Date Label in axes - chart js/ng2 charts
- How to draw a linear regression line in Chart.js
- Run the function on load
- How can I pass the data into the chartjs label?
- chartkick chart.js change colour of axis and colour of axis title
- How to dynamically change the annotation value in Chart.js
- How can I change the background colors of a bar chart after it has been created?