You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simple issue - I can't influence scale min:max via config options.
I've had a look in chart.js. I can see that there is some logic that impacts scale options if they are not set. I can't see any obvious reasons why it would be causing issues for me.
I've confirmed that the example works with vanilla chart.js.
The expected behaviour is a Y axis with a scale from 0 to 5. The actual result is a Y axis with a scale from 2 to 5.
Simple issue - I can't influence scale min:max via config options.
I've had a look in chart.js. I can see that there is some logic that impacts scale options if they are not set. I can't see any obvious reasons why it would be causing issues for me.
I've confirmed that the example works with vanilla chart.js.
The expected behaviour is a Y axis with a scale from 0 to 5. The actual result is a Y axis with a scale from 2 to 5.
{ type: "bar", data: { labels: ["Context Awareness","Self Awareness"], datasets: [{ label: "Self Rating", data: [3,3.6], backgroundColor: ['#547654','#432343'], }, { label: "Average Rating (All Users)", data: [2.5,2.6], backgroundColor: '#000000', }, { label: "Research Validated Benchmark", data: [[4,5],[2.3,3.2]], backgroundColor: '#000000', }, ] }, options: { elements: { rectangle: { borderWidth: 2, }, }, responsive: true, legend: { position: "right", }, title: { display: true, text: "Chart.js Horizontal Bar Chart", }, scales: { y: { min: 0, max: 5, }, }, }, };
The text was updated successfully, but these errors were encountered: