Top "Chart.js" questions

Chart.

How to clear a chart from a canvas so that hover events cannot be triggered?

I'm using Chartjs to display a Line Chart and this works fine: // get line chart canvas var targetCanvas = document.getElementById(…

javascript html charts chart.js
Setting width and height

I'm trying out the example code for Chart.js given in the docs. Width and height is specified inline on …

chart.js
JavaScript Chart.js - Custom data formatting to display on tooltip

I have looked at various documentation and similar questions on here, but cannot seem to find the particular solution. Apologies …

javascript string-formatting number-formatting code-formatting chart.js
Remove x-axis label/text in chart.js

How do I hide the x-axis label/text that is displayed in chart.js ? Setting scaleShowLabels:false only removes the …

javascript html charts chart.js
How can labels/legends be added for all chart types in chart.js (chartjs.org)?

The documentation for chart.js mentions "legend templates" but gives no resources or examples of such legends. How can these …

javascript chart.js
How to format x-axis time scale values in Chart.js v2

I am able to format the tooltips when I hover over a datapoint on a line chart via options.scales.…

chart.js
In Chart.js set chart title, name of x axis and y axis?

Does Chart.js (documentation) have option for datasets to set name (title) of chart (e.g. Temperature in my City), …

charts title chart.js
how to set start value as "0" in chartjs?

here is my code. i need to set initial value as "0" in both x and y axis scales. I have …

charts chart.js
Chart.js - Formatting Y axis

I'm using Chart.js to draw a simple bar plot and I need to format its Y axis like 123456.05 to 123 456,05 $ …

string-formatting chart.js
How to set ChartJS Y axis title?

I am using Chartjs for showing diagrams and I need to set title of y axis, but there are no …

javascript jquery charts chart.js