score:5
Accepted answer
you are using v2 syntax while using v3 so the option name and place where wrong, also your scale config was wrong, it should look like this:
const option = {
plugins: {
tooltip: {
callbacks: {
title: function () {
return "my tittle";
}
}
},
legend: { display: false },
title: {
display: true,
text: "test chart",
position: "top"
}
},
scales: {
y: {
beginatzero: true
}
}
};
for more information about changes between v2 and v3 please check the migration guide
Source: stackoverflow.com
Related Query
- ChartJS multiple tooltip callbacks not working
- Chartjs not working with d3 from csv source
- react-chartjs-2 tooltip callback not working
- Vue + chartjs : Nearest point on hover tooltip not working
- show label in tooltip but not in x axis for chartjs line chart
- Time Series Line chart js in react not working
- chartjs-plugin-zoom not working with my React project
- showing tooltips all the time in chartjs 2.4 not working
- ChartJS - radar chart options not working
- Bubble Chart in Chartjs not working
- code works fine on jsfiddle but one function is not working on website
- React chartjs 2 - Type 'string' is not assignable to type '"timeseries"'
- zeroLineColor and zeroLineWidth not working for the x-axis in Chartjs
- in chart js tooltip font size is not working
- HTML 5 chartjs not working as static file
- Bootstrap modal not working with chartjs line graph
- 'barradius' for Barchart in ChartJS is not working
- ChartJS not working in Vue
- Background color of the chart area in chartjs not working
- Chartjs with Vue, Bar Chart Border Radius not working
- Chartjs not giving 'xLabel' properly on tooltip
- Multiple data sets not working when using ChartJS
- Chartjs 3 ToolTip styling is not being picked up
- padding not working in my chartjs line-graph
- Legend color not working with randomly generated background colors in chartjs pie chart
- chartjs stack bar graph color not working
- ChartJS autoskip:False not working on line chart
- ChartJS BoxWidth not working
- Chartjs fiddle not working
- ChartJs is not working in angular 4 with no errors
More Query from same tag
- Rails and Chart.js
- Where is the appropriate place to instantiate a javascript widget/chart/utility when using angular.js?
- Trying to export chart with Chartjs and React but getting erorr
- Saving ChartJS chart showing all tooltips
- chart.js how to force min and max y axis values
- Hide/show spefic data in ChartJS
- Complete border on ChartJS bars
- Angular charts is not displayed
- Possible to create quadrant chart with ChartJS, with the "origin" centered at a single point?
- Add multiline labelString to yAxes Chart.js
- Chart.js "display:none" Issue
- Chart.js turn labels into links
- JQuery Datatables overlapped when using column filtering
- How to get the length (height) of the vertical bar in Chart.js
- ChartJS: unwanted top/bottom padding when legend is aligned right
- ChartJS: Get value from another another Chart
- Chart js legend are being cut off if the bar height is equal to port height - chart js
- Unable to change size of Chart.js
- bower degrades chart.js each time installing other packages
- chart.js - problem with label on the right hand
- Angular Chartjs error TS2304: Cannot find name OffscreenCanvasRenderingContext2D
- Tooltip background color gets faded angular-chart.js
- how to update chartjs2 option (scale.tick.max)
- Angular6 and ng2-charts does not display any charts when i fill data from webservice
- Bar Color In Chart JS
- Why i only get one value after executing "for loop" to display "datasets.data" in ChartJS
- Chart.js load new data
- Remove Chart.js chart padding
- line charts is higher that the dataset in Chart.JS
- Chartjs stacked bar separate tooltip for all stacked