score:0
Accepted answer
this is because you are trying to use v2 syntax in v3, in v3 all scales have been changed to objects instead of arrays so you will need to put it like this:
options: {
scales: {
x: {
title: {
display: true,
text: 'number of calls'
}
}
}
}
Source: stackoverflow.com
Related Query
- Problem adding name to X-axis for a chart
- In Chart.js set chart title, name of x axis and y axis?
- show label in tooltip but not in x axis for chartjs line chart
- Chart JS - set start of week for x axis time series
- Problem for display a chart with Chart.js and Angular
- How to hide the y axis and x axis line and label in my bar chart for chart.js
- Chart js different background for y axis
- How to show different product name for every bar in chart js
- Minimum value for x Axis doesn't work for horizontal bar chart | ChartJS
- Adding a Date adapter for Time Cartesian axis from a cdn
- Chart Js reduce text size for label on X axis
- Linear x axis for bar chart chartjs
- Chart.js two y axes line chart tooltip value incorrect for 2nd y axis
- How do you set x and y axis and Title for a line chart using charts.js?
- Problem with script src for Chart.js. The CDN for Chart.js funtions fine, so my code is ok. Somehow I'm not linking the file correctly
- ChartJS/High Charts Radar chart - Different radial axis labels for each category that appear on hover
- Adding hours and minutes to a date object for time axis
- Chart JS tick options not working for y axis
- How to start Y Axis Line at 0 from right for negative values in chart js 2?
- getting additional value fields from data source for dx.chartjs doughnut chart
- 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
- Line chart plotting multiple points for duplicate data on x and y axis using chart.js
- Chartjs 3.2 problem with setting whole numbers for Y axis
- Unable to hide x axis for horizontal bar chart vue js
- Using custom dataformat in chart.js for Multi Axis Line Chart
- Chart js assign default value for y axis
- Chart for Real time data with duplicate x axis
- How to set max and min value for Y axis
- How can labels/legends be added for all chart types in chart.js (chartjs.org)?
- Chart Js Change Label orientation on x-Axis for Line Charts
More Query from same tag
- Django Serializers - Return the sum of values by filter
- Where put "multiTooltipTemplate" in Chart.js v2.x
- Bar chart.js legend showing "undefined"
- Add line from point to x-axis and bold label of him
- Why is my dependency injection not working in Angular?
- Chart.js - disable tooltip when cursor moves outside the main canvas
- How to change background color in ng2-charts
- Deleting and recreating an element with React
- Chart is not populating when getting the data from AJAX call
- how to change object properties by on-click
- How can I get the label onclick event by multiple graphs?
- Using sticky figures above bars in chart.js
- Is there a way to align title and legend on the same line?
- how to determine which bar was clicked on a chart js
- How to add datas to chart js from javascript array itself?
- ChartJS: How to set fixed Y axis max and min
- ChartJS and Ajax calls
- Chart.js sciptable options: accessing the values of the data object?
- chartjs line graph points with different color
- How to format tool tip as currency in piechart chartJS?
- How to set and adjust plots with equal axis aspect ratios - CHART.js
- How do I change the colour of a Chart.js line when drawn above/below an arbitary value?
- Proper way to use a counter variable in HTML/Javascript
- ChartJs line chart repaint glitch while hovering over
- How to use a Data Array within a Chart JS dataset?
- Modify the x-axis label in chart js
- How to reformat tooltip in Chart.js?
- Y Axes not displaying properly on Chartjs
- Datetime picker in Chart.js
- How to create a histogram in charts.js with MYSQL data