ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Bar chart
Posted by Leo on Jul-18-2013 01:02
Attachments:
Hello, Peter,

How do I put at least a little line on the 1st pie chart?

~~~
  1 #!/usr/bin/perl
  2 use perlchartdir;
  3 my $img = shift;
  4 my $depth = 0;
  5 my $data = [98, 35497];
  6 my $c = new PieChart(110, 110, $perlchartdir::Transparent,
$perlchartdir::Transparent, 0);
  7 $c->getDrawArea()->circle(55, 55, 53, 53, 0x6146e5, 0x6146e5);
  8 $c->setPieSize(55, 55, 48);
  9 $c->set3D($depth);
10 $c->setColors2($perlchartdir::DataColor, [0x6146e5, 0xcccccc]);
11 $c->setData($data);
12 $c->setLabelStyle("", 8, $perlchartdir::Transparent);
13 $c->makeChart("../g/1_PPIE01PNG");
~~~
peter08.png

  Re: Bar chart
Posted by Peter Kwan on Jul-18-2013 02:01
Hi Leo,

If the sector is extremely small, it is possible that it would be invisible. This is the accurate method to represent the sector.

If you want to see the sector anyway, you may consider to set the border of the sector to be 1 pixel thick and blue in color.

$c->setLineColor(0x6146e5);

Hope this can help.

Regards
Peter Kwan

  Re: Bar chart
Posted by Leo on Jul-18-2013 21:46
Great! Thanks!