Home forums Using CanvasJS Border around pie part or column

This topic contains 4 replies, has 5 voices, and was last updated by  n0junk@hotmail.com 1 month, 2 weeks ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #6393

    mentalic
    Participant

    Is it possible to change/add border around each pie slice (at pie chart) or column (at bar chart)?

    Thanks,
    Alex

    #6395

    Sunil Urs
    Keymaster

    Alex,

    As of now borders are not available in Chart.


    Sunil Urs

    #14975

    Cristi S.
    Member

    Hi there,

    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?

    Thanks,
    -Cristian

    #14977

    Sanjoy
    Participant

    Sorry, this feature is not available as of now.

    #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.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.