score:0
ReAd ThE DoCuMEnTaTIoN
https://www.chartjs.org/docs/latest/axes/cartesian/linear.html
options: {
indexAxis: 'x',
title: {
display: false,
text: 'Average SAT Score'
},
legend: {
display: true
},
tooltips: {
enabled: false
},
scales: {
xAxes: [{
ticks: {
suggestedMin: 800,
suggestedMax: 1600
}
}]
}
}
score:0
This is what worked for me
options: {
scales: {
x: {
min: 0,
max: 100,
display: false,
},
}
}
Display equals to false was set since if not it appears another scale bar below the one I had chosen for my data. According to the docs:
min: User defined minimum number for the scale, overrides minimum value from data.
max: User defined maximum number for the scale, overrides maximum value from data.
Source: stackoverflow.com
Related Query
- Custom labeling/fixed range on x-axis in Chart.js for horizontal bar chart?
- Minimum value for x Axis doesn't work for horizontal bar chart | ChartJS
- Unable to hide x axis for horizontal bar chart vue js
- ng2-charts: How to set fixed range for y axis
- How to hide the y axis and x axis line and label in my bar chart for chart.js
- Chart.js: Minimum value for x-axis at horizontal stacked bar chart
- ChartJS bar chart fixed width for dynamic data sets
- to increase space between x axis and first horizontal bar in chart js
- Chartjs 3.x - How to duplicate X axis on both sides of horizontal bar chart with only 1 dataset?
- How to set custom Y Axis Values (Chart.js v2.8.0) in Chart Bar JS
- Horizontal gradient for every single bar in group chart js
- Set fixed label size for grouped bar chart in angular Chartjs
- Linear x axis for bar chart chartjs
- How to add custom text inside the bar and how to reduce the step size in y axis in chart js( Bar chart )
- Plugin for custom horizontal line Y-axis marker on grid of a Line chart with Chart.js
- ChartJS fails to render horizontal bar chart for timeseries data
- Angular 8: Creating a custom horizontal bar chart
- Using custom dataformat in chart.js for Multi Axis Line Chart
- Horizontal stacked bar chart with chart.js
- Horizontal bar chart in chart.js
- chartjs : how to set custom scale in bar chart
- Chartjs 2 - Stacked bar and unstacked line on same chart with same y axis
- show label in tooltip but not in x axis for chartjs line chart
- How to add second Y-axis for Bar and Line chart in Chart.js?
- How do I draw a vertical line on a horizontal bar chart with ChartJS?
- Chart JS - set start of week for x axis time series
- Different color for each column in angular-chartjs bar chart
- Border radius for the bar chart in ChartJS
- Chartjs - data format for bar chart with multi-level x-axes
- Creating a horizontal bar chart extension on Chart.js
More Query from same tag
- Can't pass data to chart.js graph
- TypeError: Cannot read property 'defaults' of undefined when using the react wrapper of chartjs
- Error with Chartjs radar pointLabels color Scriptable
- How to create a donut chart like this in chart.js
- Chartjs does not show on pdf in yii2 despite showing in html view
- Converting Chart.js canvas chart to image using .toDataUrl() results in blank image
- real time scrolling based chart with chart.js
- Chartjs sample line chart setup doesn't show dataLabels
- Charting Commodity Data - Issue getting the dates and values in JSON
- Chart.js - Uncaught ReferenceError: chart is not defined
- Chart JS showing empty chart without any data
- ChartJS Pie Chart How default just show 2 legend datas
- Charts.js Y-Axis whole Numbers
- Charts.js: changing xAxis time attribute with function
- how to increase space between legend and chart in chartjs (ng2charts ) using angular
- How to use plugin in chartjs-node?
- Space between ticks marks and X axis with chart.js
- Is it possible to change pointStyle for elements of a ChartJS bubble chart per dataset?
- Input data in german data format combined with ChartsJs
- Creating a grouped and stacked chart in Chart.js
- Right way to Plot Dynamic Grouped Bar chart.js
- how to combine to array for chartjs width php
- Chartsjs 2 (Alpha) not working in IE8 (even with excanvas)
- Chart JS - Is there a way to connect two datasets in a line chart?
- ChartJS Line chart causes browser crash
- ChartJs - Double tooltip Top and Bottom on hover
- Javascript function to check for missing dates on JSON object
- ChartJS: How to set a data point to be hidden by default?
- vue-chartjs v4 reference to the chart object
- start y-axis from 0 in ng2-charts