score:0

i think you cannot draw a line using chart.js the best solution would be a shift to d3 charts where you can make custom charts lines etc..

you can create a line using d3 as below

var svgcontainer = d3.select("body").append("svg")
    .attr("width", 200)
    .attr("height", 200);


var circle = svgcontainer.append("line")
    .attr("x1", 5)
    .attr("y1", 5)
    .attr("x2", 50)
    .attr("y2", 50)
    .attr("stroke-width", 2)
    .attr("stroke", "black");

Related Query

More Query from same tag