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

Message ListMessage List     Post MessagePost Message

  Colors of the Zone in Round Meter
Posted by Sofia on Aug-17-2012 19:40
Hello,

I wonder is it possible to adjust the width of colored zones in Round Meter like we can adjust font size, oder length of the Ticks.
Thanks,
Sofia

  Re: Colors of the Zone in Round Meter
Posted by Peter Kwan on Aug-17-2012 23:38
Hi Sofia,

In the original "Round Meter" sample code, the code used to add a zone is something like (in Java/C#):

    m.addZone(0, 60, 0x99ff99);

Instead of using the above code, you can use the 5 parameter version of addZone to specify the starting radius and ending radius of the zone, like:

    //zone radius from 50 to 85 - a total width of 35 pixels
    m.addZone(0, 60, 50, 85, 0x99ff99);

You may refer to the documentation on AngularMeter.addZone (you may look up AngularMeter.addZone from the ChartDirector documentation index) for more details on this API.

Hope this can help.

Regards
Peter Kwan

  Re: Colors of the Zone in Round Meter
Posted by Sofia on Aug-20-2012 20:09

Thanks a lot for your help Peter,

Regards
Sofia