score:1
Accepted answer
you forgot to place the labelstring
in the scalelabel
property again for your combined config, if you put it like this it should work:
options: {
title: {
display: true,
text: 'number of faults'
},
responsive: false,
scales: {
yaxes: [{
scalelabel: {
display: true,
labelstring: 'probability'
},
ticks: {
beginatzero: true,
min: 0
}
}]
},
}
Source: stackoverflow.com
Related Query
- Formatting axis labels using ChartsJS
- Using Chart.js - The X axis labels are not all showing
- Time chart labels with some X axis labels using Chart js v3
- 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
- How to offset x and y axis grid points and labels using chart.js?
- How to run Chart.js samples using source code
- Chart.js Formatting dual axis and labels
- Chart.js - Formatting Y axis
- Charts.js Formatting Y Axis with both Currency and Thousands Separator
- Hiding labels on y axis in Chart.js
- ChartJS New Lines '\n' in X axis Labels or Displaying More Information Around Chart or Tooltip with ChartJS V2
- Chart.js 2.0 Formatting Y Axis with Currency and Thousands Separator
- How to set labels align left in Horizontal Bar using chart.js?
- How to add images as labels to Canvas Charts using chart.js
- y axis Formatting with Metric prefix 1000=> 1k Chart.js
- How to wrap X axis labels to multi-lines (X axis label formatting) in ng2-Charts?
- Display a limited number of labels only on X-Axis of Line Chart using Chart.js
- Changing x axis labels in Chart.js line chart
- Line chart with large number of labels on X axis
- How to access labels array using chart plugin (Chart.pluginService.register) in Chartjs 2.x?
- Chart.js - displaying multiple line charts using multiple labels
- How to display the labels in doughnut chart using ng2 charts?
- Chartjs : data labels getting overlapped in smaller datasets using chartjs-plugin-datalabels
- Show count concatenated to labels using chart.js
- ChartJs: X Axis labels cutting at bottom
- How to display value labels above graph bars using chart.js
- Chart.js Y axis label, reverse tooltip order, shorten X axis labels
- Show labels on each sector to polar chart using angular js chart
- How to hide axis using Chartkick.js
- Display labels on bar chart using Chart.js
More Query from same tag
- How can I fix the offset of the gradient to be aligned with the chart points(chart.js)?
- Parse 2d int array to List of BubbleDataPoints
- Angular 6: chartjs value not updating with dynamic value update
- Chart.JS Error: this.scale is undefined
- ChartJS v2.6 update breaks custom line-with-area-range (stripe) chart
- Chartjs change horizontal axis value
- Using ChartJs In a VueJs component
- Chartjs Doughnut Chart smooth animation in countdown
- Chart.js with handlebar.js shows empty canvas
- How to set time scale zoom in ChartJS?
- Display point style on legend in chart.js
- Change tool-tip direction in react-chartjs2
- Syntax Error: Token '{' invalid key at column 2 of the expression [{{id}}] starting at [{id}}]?
- Chartjs v2.5 - only show min and max on scale, absolute positioning on scale
- What happened to generateLegend() in chartjs 3.0?
- Use fetch to get JSON Data for Chart JS
- ChartJs x-axis label to be in dateTime format issue: DD-MMM-YYYY, but displayed as MMM-YYYY-DD
- How to change the label color in chart.js?
- highlightFill for radar charts in chartJS
- Chart.js how to display multiple labels on multi bar stacked chart
- Chart tooltip should show the consolidated information of a single bar in double bar chart
- ASP.NET Core Razor Pages - Get List Data to Display on Chart.js Graph
- Chartjs 2 Line Graph Single Stroke Between Datasets
- How to show xaxis lable o only data point and hide all others?
- Chart.js V2 line chart missing point
- Unable to get chartjs to draw a chart with dynamic data (variable not hardcoded)
- Chart.js -> line chart -> multiple points with the same X
- chart.js npm module not working
- Chart.js with wrong Y axis
- How to create logarithmic scale in chart.js with normal numbers?