Home forums Using CanvasJS Border around pie part or column Reply To: Border around pie part or column

#23266

Kind of a hack, but I had to add code to give me a top border (for stackedColumn)

search for in the canvasjs.min.js (spaces and line breaks may not be the same)

     a.fillStyle = g;
     a.globalAlpha = e;
     a.fillRect(c, b, d - c, f - b); 

Add this before the code

     a.fillStyle = '#000';
     a.fillRect(c, b + f - b, d - c, 1);

It will paint a black rectangle on top of the column in the chart.