Profile Picture

Data labels rounding

Posted By Sébastien Dupertuis 12 Years Ago
Author
Message
Sébastien Dupertuis
Posted 12 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 2, Visits: 1

Hello,

I have two questions:

1. Is it possible to round the value of a data label without rounding the data point?

2. Is this possible to include the X values in the data labels?

Thanks for your help



Nevron Support
Posted 12 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009
Hi Sébastien,

Regarding your questions:

1. Is it possible to round the value of a data label without rounding the data point?

Yes, this is possible. Each data series has an associated NValueFormatter object which can be accessed through the ValueFormatter property. For example you can use something like:

series.Values.ValueFormatter = new NNumericValueFormatter("0.000");

or

series.Values.ValueFormatter = new NNumericValueFormatter("0.##");

The formats strings are completely described in the .NET Framework documentation:

http://msdn.microsoft.com/en-us/library/26etazsy.aspx


2. Is this possible to include the X values in the data labels?

Yes, you have to include the <xvalue> tag in the data label format string, for example:

series.DataLabelStyle.Format = "Y:<value> X:<xvalue>";


Best Regards,
Nevron Support Team



Sébastien Dupertuis
Posted 12 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 2, Visits: 1
Hello,

Thank you very much. Answer absolutely clear, I like it :-)



Similar Topics


Reading This Topic