format Pie Chart Labels in boxes

(2 posts) (2 voices)


No tags yet.

  1. salocin001, Member

    what would be the correct way to style the pie chart labels to add boxes and/or background colors?

    This is the relevant code from the ChairDirector documentation:

    # Set the sector label style to Arial Bold 10pt, with a dark grey (444444) border
    $textBoxObj = $c->setLabelStyle("arialbd.ttf", 10);
    $textBoxObj->setBackground(Transparent, 0x444444);

  2. myDBR Team, Key Master

    To just add boxes around labels with background color, you can do:

    select 'dbr.chart.options', 'chartdirector',
    '$t = $c->setLabelStyle("arial.ttf", 9);
    $t->setBackground(0xffffc0, 0x000000);

    myDBR Team


You must log in to post.