Nevron Forum

Format Legend for Surface Chart

https://www.nevron.com/Forum/Topic8344.aspx

By Alexander Haberl - Monday, December 2, 2013

Hi!

In my 3D-Surface chart I have an AutomaticPalette with 6 levels defined (see attachment). Is it possible to format the legend, so that only 2 decimals (instead of 6) are shown?
I already tried surface.Legend.Format, but that didn't work.

Thanks a lot!

By Nevron Support - Monday, December 2, 2013

Hi,

The ValueFormatter property of the surface series controls the formatting of the values displayed in the legend. You can use something like:

surface.ValueFormatter = new NNumericValueFormatter("0.00");

or

surface.ValueFormatter = new NNumericValueFormatter("0.##");