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
Invalid Percents
Hi.
For this special case you could customize series mark labels by using series GetSeriesMark event. Something like this:
It should work fine.
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%";}
}
Marjan Slatinek,
http://www.steema.com
http://www.steema.com