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

Message ListMessage List     Post MessagePost Message

  addZone can you do this ?
Posted by icm63 on May-19-2014 14:12
Attachments:
The standard addZone function can give you vertical zones and line marks

Question can you do this with zones, See ZonesImproved image?? If so how, any ideas??
Zone.png
ZoneImproved.png

  Re: addZone can you do this ?
Posted by Peter Kwan on May-20-2014 02:55
Hi icm63,

You can create a y-zone color (see the "Y Zone Coloring" sample code) such that the color
is transparent above 80 or below 20, and is brown otherwise, then use the y-zone color as
the fill color in addZone for the x-axis. For example:

Dim myColor As Integer = c.yZoneColor(20, Chart.Transparent, c.yZoneColor(80, &HFF66CC,
Chart.Transparent))
c.xAxis().addZone(18, 20, myColor)

Hope this can help.

Regards
Peter Kwan

  Re: addZone can you do this ?
Posted by icm63 on May-20-2014 03:02
YOU SAID:

Dim myColor As Integer = c.yZoneColor(20, Chart.Transparent, c.yZoneColor(80, &HFF66CC,
Chart.Transparent))

ME: I get this, this is 20 to 80.


c.xAxis().addZone(18, 20, myColor)

ME: By what are the 18 and 20, should it not be 0 to 100??

  Re: addZone can you do this ?
Posted by Peter Kwan on May-20-2014 17:47
Hi icm63,

In the x-direction, the zone is in between x=18 and x=20. In the y-direction, the zone is in
between y=20 and y=80. So the yZoneColor uses 20 and 80, while the addZone for the x-
axis uses 18 and 20.

Hope this can help.

Regards
Peter Kwan

  Re: addZone can you do this ?
Posted by icm63 on May-21-2014 02:56
oooh. Thanks