score:1
Try this:
$scope.options = {
scales: {
yAxes: [{
ticks: {
beginAtZero: true
}
}]
}
};
score:1
If you aren't using a horizontal Bar, the answer of Hongliang should work.
Otherwise just change "yAxes" to "xAxes", like this:
$scope.options = {
scales: {
xAxes: [{
ticks: {
beginAtZero: true
}
}]
}
}
Source: stackoverflow.com
Related Query
- Options beginAtZero doesn't work in angular-chart.js
- angular chartjs line chart default options
- I'm trying to use chart.js in angular to create a simple bar chart but I'm getting an error as 'legend' type doesn't exist for options
- everything i put in the options of the Line charts doesnt work
- Dynamically update the options of a chart in chartjs using Javascript
- Problem for display a chart with Chart.js and Angular
- Angular 2 chart - change point radius
- Angular Chart JS prevent x label causing overflow
- Series Details Not Showing in Angular Chart with Charts.js
- Ng2-charts / chart.js - how to refresh/update chart - angular 4
- Extending Existing Chart Types angular chart js using chart js 2.0
- Chart.js Chart in Angular does not load until resizing browser window
- How to update data Chart in async way in Angular Chart.js?
- Chart.js Radar chart legend label font size doesn't work
- Angular 8 & ChartJs change color in pie chart
- How do I put this on Real-Time? I already put (async: True) but it doesnt work
- Create multiple dynamic stacked chart using chart.js in Angular 10?
- Show labels on each sector to polar chart using angular js chart
- How to set single color on each bar in angular chart js
- Angular chart how to show the legend data value by default along with legend name
- How to show percentage (%) using chartjs-plugin-labels ( Pie chart ) in angular 2/8
- How to add title inside doughnut chart in Angular Chart?
- ChartJS - radar chart options not working
- Chart Js + Angular
- Using chart js options with react-chartjs-2 and typescript
- ERROR TypeError: "this.canvas is undefined" | Problem with creating a chart with angular and chart.js
- Change Angular js charts.js chart type dynamically
- chart annotations not showing in Angular 2
- Minimum value for x Axis doesn't work for horizontal bar chart | ChartJS
- Remove additional white space on left and right side of Angular Chart
More Query from same tag
- How to create Bar chart that gets updated from new ajax requests with ChartJS?
- Is it possible to fill particular portion between given start & end angle in pie chart in chart.js?
- Change color of Polar Area datasets in Angular
- How to decrease the interval for Horizontal Stacked bar in ChartNew.js?
- Chart Click Event - Clicking label of doughnut chart, doesn't return label ng2-charts
- canvas does not display proper width and height chart.js
- Chart.js v2.0: Tooltip only for one dataset
- ChartJS glitches
- Styling the middle text of Chart.js's doughnut chart
- Charts not showing in wicked pdf
- Draw bubbles to show details in line chart using chart js
- Problem to create dynamic pie chart in ChartJS
- Filtering labels to show user from Chart.js
- How to adjust the Js Chart's label?
- Chart.js microsoft edge display issue
- Identify which chartJs chart was clicked on
- The expected type comes from property 'XAxes' and 'yAxes' which is declared here on type '_DeepPartialObject<{ [key: string]:
- chartjs display data in one bar line with 3 different data sets in 3 different colors
- Enable Stepped lines in Chart.Js
- Convert FirestoreCollection into an array?
- How to Change the Y axis of an Primefaces 7.0 ChartJS Linechart with Java?
- Create charts with a loop in Django with charts.js
- How to pass dynamic values as objects inside data in line chart?
- accessing returned data from a states resolve function
- Conditional in ChartJS axes tick callback function isn't returning the expected labels
- concatenate on tooltip from data array in chart js
- Chart.js configuration
- Chartjs in Vue integrate parsed Json Data
- chart js graph not showing on canvas
- X and Y axis labels not displaying on line chart (Chart.js)