Ability to make all of the Pie Charts the same size

Comments

7 comments

  • Avatar
    Brian Wilson

    Hi Janet - Hope you're well!

    I believe as long as the widgets are sized the same and there are no other differences, the pies should be the same size such as in this row:

    Do you have the distribute equally plug-in to make sure all of the widgets are the same size?

    If you do, the other place I've seen distortions are from the legend or data labels -- If you turn those off, is the size fixed?

  • Avatar
    Janet Erdman

    I'm having the opposite issue and have already worked with the Sisense Support team and they recommended that I post in here.

     

  • Avatar
    Brian Wilson

    Gotcha -- yes, it looks like the data labels are causing the issue

    If you turn off the categories labels and the legend, that should make everything the same size.

    The labels will still be visible if you hover over the slices.

     

     

     

  • Avatar
    Elliott Herz

    Hey Guys,

    You can also add a widget script to each pie chart that can control the size of the radius/diameter of the pie.

    widget.on('processresult', (el, args) => {
    args.result.plotOptions.pie.size = 20;
    args.result.plotOptions.pie.size = '75%';
    });

    Here is an example, where the line with the 20 is setting the exact pixels of the diameter, while the 75% is doing it based on a percentage. Using this you can probably get everything to look nicer. I'd recommend sticking to % though.

    Hope this helps,

    Elliott

  • Avatar
    Janet Erdman

    Elliott - This worked perfectly thank you so much for your assistance.

  • Avatar
    Elliott Herz

    I'm glad that worked for you!  =D

  • Avatar
    Jessica Orlando

    I have a similar issue where the client is asking for the pie charts to look similarly sized/formatted when printing to PDF. I am running into an issue with the labels getting cut off in the PDF. Is there a way to 1) change the Pie Chart font size or 2) wrap the text? (they specifically asked for the labels next to the pie charts, not a legend) 

Please sign in to leave a comment.