Charts.js Straight Lines - I Cant Find A Solution
So im using charts.js http://www.chartjs.org/ and im trying to make the lines between 2 dots be straight and not curvy for no apperent reason. it right now looks like that http://i
Solution 1:
Set the option bezierCurve
to false
.
window.onload = function(){
var ctx = document.getElementById("canvas").getContext("2d");
window.myLine = newChart(ctx).Line(lineChartData, {
responsive: true,
scaleFontColor: "#FF5972",
bezierCurve: false
});
});
It's right there in the Line Chart option list.. You can also have them be curved but "stiffer" by leaving the option set and then varying the bezierCurveTension
property.
Post a Comment for "Charts.js Straight Lines - I Cant Find A Solution"