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

Message ListMessage List     Post MessagePost Message

  Cut a line in your sides ...
Posted by Rhaone on Mar-12-2015 11:58
Attachments:
Dear friends ... I have a simple question but not from me ....

I have 3 lines A B and C ... the Line C cut A and B and the rest of line C is not necessary
in the graphic ...

See the picture ... please ...

Grateful ...

Rhaone
ScreenHunter 2015-03-12 00.25.55b.PNG

  Re: Cut a line in your sides ...
Posted by Peter Kwan on Mar-12-2015 23:49
Hi Rhaone,

You can use an x-zone color as the line color. The x-zone color can be configured so that
the color is transparent for x < 30 and for x > 60, and red otherwise. In this way, the part
of the line that is outside A and B will be transparent and not visible. For example:

$myColor = $c->xZoneColor(30, Transparent, $c->xZoneColor(60, 0xcc0000, Transparent));

$c->addLineLayer($myData, $myColor, ....);

Hope this can help.

Regards
Peter Kwan

  Re: Cut a line in your sides ...
Posted by Rhaone on Mar-13-2015 02:21
Attachments:
You make me happy! ... the solution is perfect!

Thank you very much!

See my test ...
ScreenHunter 2015-03-12 15.17.29.png