Page 1 of 1

Invalid Percents

Posted: Tue Dec 23, 2003 2:08 pm
by 8122343
Hi,

I have a chart based on a datasource and I'm displaying Percents in the mark points.
Whenever all series' values are zero, a value of 10000 % is displayed on eack mark point.
How can I get a valid notation (0%) instead.

Thanks,
Bentzy

Posted: Tue Dec 30, 2003 3:55 pm
by Marjan
Hi.

For this special case you could customize series mark labels by using series GetSeriesMark event. Something like this:

Code: Select all

private void bar1_GetSeriesMark(Steema.TeeChart.Styles.Series series, Steema.TeeChart.Styles.GetSeriesMarkEventArgs e)
{
  if (series.YValues.Maximum == 0 && series.YValues.Minimum == 0) 
{e.MarkText = "0.00%";}
}
It should work fine.