You must be logged in to post your query.
Home › Forums › Chart Support › Border around pie part or column
Tagged: border, columns, stackedColumn
Is it possible to change/add border around each pie slice (at pie chart) or column (at bar chart)?
As of now borders are not available in Chart.
What’s the status on series borders please? For instance, is it possible to create now a chart with empty white columns? If we set the (fill) color to white, we absolutely need a border.
Is there any hack or workaround to do this?
Sorry, this feature is not available as of now.
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.
You must be logged in to reply to this topic. Login/Register