score:0
Check these answers out:
chartjs : how to set custom scale in bar chart
how to change the Y-axis values from real numbers to integer in chartjs?
Basically you'd add this to your datasets (where n is the number of scale steps you want):
scaleOverride:true,
scaleSteps:n,
scaleStartValue:0,
scaleStepWidth:500,
score:15
For drawing my chart.Line with a fixed Y axis scale, I use this code:
mychart.Line(data,{scaleOverride: true, scaleStartValue: 0, scaleStepWidth: 1, scaleSteps: 30});
This should also work for the chart.Bar object.
Source: stackoverflow.com
Related Query
- Javascript Chart.js scale fix
- How to prevent first/last bars from being cut off in a chart with time scale
- chartjs : how to set custom scale in bar chart
- Dynamically update the options of a chart in chartjs using Javascript
- How to fix chart Legends width-height with overflow scroll in ChartJS
- Chart Js Negative Scale
- How to add datas to chart js from javascript array itself?
- Category scale on Y-axis and time on x-axis in bubble chart in Chartjs
- set y-axis scale manually in a bar chart using angular-chart.js
- impossible to remove scale from radar chart (chart.js)
- Fix the height of Y-Axis of Bar chart in chart.js?
- Populating javascript chart with Razor model data
- How to fix chart looking blurry in ChartJS?
- Chart Js Data transformation using Javascript
- how can i modify scale labels in angular chart js?
- Equal distance grouped bar chart irrespective of scale - chart.js
- How can I style scale numbers in a Polar Area chart (chart.js)
- Calling external Chartjs chart from a javascript file into HTML in Flask
- Passing an Array from a Flask view to the javascript code of another view
- chart js - bar chart with time scale on Y axis in Hours and Minutes
- Chart.js Polar Area Chart is not scale right
- How to set a time scale to a ChartJS chart from JSON?
- How to select context or scale on chart in chartjs quickchart io to run getValueForPixel?
- How can I fix the offset of the gradient to be aligned with the chart points(chart.js)?
- How to scale label size radar chart chart.js
- Print chart in Chrome build by Chart jS using javascript
- ChartJS Polar Area Chart Scale Removing
- Javascript chart fills up the entire browser window
- How to send data from struts2 to a javascript function to draw a chart
- How to remove all gridlines and ticks all lines in lines chart in javascript taken from cdn)
More Query from same tag
- Y-axis scale uneven
- Return 0 when some information DOESN'T EXIST (not when exists and return null)
- Multiple datasets with one data value chartjs
- Add padding between two y-axis scales using chart.js
- Chartjs: Why do I have 2 Y Axis labels?
- How do I get the current step size of a chartjs chart whose stepSize I have not defined?
- generator-angular-fullstack and angular-chart.js not displaying charts
- Chartjs does not show annotations when x axis is of type time
- How to export report as PDF/CSV in ChartNew.js
- Chart.js update function (chart,labels,data) will not update the chart
- Chart.js t.ticks.map is not a function
- How to use forEach loop on my array to plot x and y variables on my chart (Chart.js)
- ChartJS: datalabels: show percentage value in Pie piece
- How to set 2 y-axis title (and/or label) on chartjs?
- Hover/click area in filled line chart in chart.js
- I am using Chart.js and want to change the tool tip to display date format based on timestamp input
- Change time format in Chart.js date
- Vuejs - Chartjs doesn't render my own options with api request
- Chart js multiple titles
- Chart js plugin annotation not working in vue
- Understanding Chart.js and Adding Legends to Pie Charts
- How to generate colors for unknown number of datasets in Chartjs
- How to correctly transform data for a stack chart chartJS (data transformation)?
- ChartJS incorrect plot when plotting multiple line charts in one graph
- Creating categories with different widths in chart.js
- Chartjs - legends take up too much space on mobile devices
- How do I manipulate a specific tooltip value of a Chart.js pie chart?
- Chart.js piechart, only have border on the outside of arc
- Starting a Chart.js Time Scale at 0
- ChartJS Stacked Bar Chart: Showing value in opposite directions