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

Message ListMessage List     Post MessagePost Message

  Negative value on XY Chart
Posted by Karim on Apr-06-2018 20:30
Attachments:
Hi.

We have a little trouble for an aggregate label.

On an XY Chart, with one negative value on one of the stacked parts, we can see the number bottom of the chart (see the 2 screenshots) ... and we don't want to !

Is there a wat to prevent the negative values to be written (not by changing the data, of course) ?

Thanks a lot
HistoStacked0enbas.PNG
HistoStacked0enbasTableau.PNG

  Re: Negative value on XY Chart
Posted by System Administrator on Apr-06-2018 22:58
Hi Karim,

One way I can think of is use a yZoneColor as the label color, so that it is black for y >= 0 and transparent for y < 0. For example, in C#/Java, it is like:

layer.setAggregateLabelStyle("Arial", 12, c.yZoneColor(0, Chart.Transparent, 0x333333));

Regards
Peter Kwan

  Re: Negative value on XY Chart
Posted by Karim on Apr-06-2018 23:20
Hi Peter.

Thank you for the tip, it's working.