0๐
Set the height of the chart canvas element, either by specifying it directly in the canvas
tag or by specifying max-height
in CSS.
Relevant links:
0๐
I managed to fix it, using a suggestion from another post. In the following code snippet, I added the line that set the canvas height:-
$("#dvChart5").html("");
var canvas = document.createElement('canvas');
canvas.height = 100;
$("#dvChart5")[0].appendChild(canvas);
- Chartjs-Display data at ends of floating bar graph (created using chart js)
- Chartjs-React-chartjs-2 (chart.js) Radar โ Remove values?
Source:stackexchange.com