Legends NMeshSurfaceSeries


https://www.nevron.com/Forum/Topic12611.aspx
Print Topic | Close Window

By rash Pisal - 6 Years Ago
I'm using Nevron 2011 version of the application. In my application I am trying to put the legnd on my 3D Ncartesian chart.

I have defined a pallet of colors for my NMeshSurfaceSeries and trying to use same to define  legends. Can some one suggest me how to do this. Following code defines the current pallet.
  surface.SmoothPalette = true;   
  surface.AutomaticPalette = false;  
  surface.Palette.Clear();  
  surface.Palette.Add(0.0, Color.FromArgb(255, 254, 254, 254));  
   surface.Palette.Add(GetPaletteValue(0.06, maxValue), Color.LightGray);   
  surface.Palette.Add(GetPaletteValue(0.11, maxValue), Color.LightSlateGray);   
  surface.Palette.Add(GetPaletteValue(0.16, maxValue), Color.CornflowerBlue);  
  surface.Palette.Add(GetPaletteValue(0.27, maxValue), Color.LightBlue);   
 surface.Palette.Add(GetPaletteValue(0.40, maxValue), Color.LightGreen);   
 surface.Palette.Add(GetPaletteValue(0.50, maxValue), Color.LimeGreen);  
  surface.Palette.Add(GetPaletteValue(0.60, maxValue), Color.YellowGreen);
  surface.Palette.Add(GetPaletteValue(0.70, maxValue), Color.Yellow);  
  surface.Palette.Add(GetPaletteValue(0.80, maxValue), Color.Orange);    
 surface.Palette.Add(GetPaletteValue(0.90, maxValue), Color.OrangeRed);    surface.Palette.Add(GetPaletteValue(1.00, maxValue + 50), Color.Red);.

By Nevron Support - 6 Years Ago
Hi Rashmi,
Palette legends is a feature which is supported in later versions of the control. In this version you can just create a table with the palette colors and the examples show how to achieve that.
By rash Pisal - 6 Years Ago
Can you direct me too the example which demonstrates this feature.
By Nevron Support - 6 Years Ago
Hi Rashmi,

Sure - the WinForms - All Examples \ Chart Gallery \ Mesh Surface \ General example shows a mesh surface chart with associated legend:
surface.Legend.Mode = SeriesLegendMode.SeriesLogic;
enables tells the legend to display a legend for the surface palette...
By rash Pisal - 6 Years Ago

This is my first time I'm using Nevron charts. And I need more help here. How I'm going to assign this pallet to the legend. I mean how can I say in my legend that value from 0-2 is in red and 2-4 in  blue and so on and so forth.

By rash Pisal - 6 Years Ago
This is the first time I'm working with the Nevron chart.I have a 3D cartesian chart and I have defined a NMeshSurfaceSeries on this chart. To this surface  I have added a color pallet with the following code. Now I'm trying to add a legend to my 3D chart which should specify something such as red denotes the area with height 0-2 or Blue denotes the area with height 2-4 and so on and so forth. How do achieve this.

 surface.Palette.Add(0.0, Color.FromArgb(255, 254, 254, 254));   
 surface.Palette.Add(GetPaletteValue(0.06, maxValue), Color.LightGray);  
  surface.Palette.Add(GetPaletteValue(0.11, maxValue), Color.LightSlateGray);   
 surface.Palette.Add(GetPaletteValue(0.16, maxValue), Color.CornflowerBlue);   
 surface.Palette.Add(GetPaletteValue(0.27, maxValue), Color.LightBlue);  

By Nevron Support - 6 Years Ago
Hi Rashmi,
Just take a look at the Chart Gallery \ Mesh Surface \ General Example - it shows exactly this type of chart configuration. In short you just need to have:
surface.Legend.Mode = SeriesLegendMode.SeriesLogic;
in which case the surface will display the currently specified palette on the legend...