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

Message ListMessage List     Post MessagePost Message

  Y Zone Coloring
Posted by Thiago on Sep-16-2019 22:00
Hi,

I trying use Y Zone Coloring but I need a three range of color, example:

> 80 RED
> 70 and < 80 YELLOW
< 70 GREEN

Have any way to do this?

  Re: Y Zone Coloring
Posted by Thiago on Sep-16-2019 22:01
Another question, Can I have use it with Line Chart?

  Re: Y Zone Coloring
Posted by Peter Kwan on Sep-17-2019 04:27
Hi Thiago,

You can cascade y-zone colors for more than 2 colors. For example:

int myColor = c.yZoneColor(70, 0x00cc00, c.yZoneColor(80, 0xffff00, 0x0000ff));

One of the sample code that comes with ChartDirector applies an x-zone color to a line. You can certainly apply a y-zone color to a line too.

https://www.advsofteng.com/doc/cdjava.htm#xzonecolor.htm

Regards
Peter Kwan

  Re: Y Zone Coloring
Posted by Thiago on Oct-01-2019 01:07
Thanks Peter.