Invalid Percents

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Bentzy
Newbie
Newbie
Posts: 1
Joined: Fri Oct 10, 2003 4:00 am

Invalid Percents

Post by Bentzy » Tue Dec 23, 2003 2:08 pm

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

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Tue Dec 30, 2003 3:55 pm

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.
Marjan Slatinek,
http://www.steema.com

Post Reply