Legends NMeshSurfaceSeries


Author
Message
rash Pisal
rash Pisal
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)
Group: Forum Members
Posts: 6, Visits: 34
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);.


Replies
rash Pisal
rash Pisal
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)
Group: Forum Members
Posts: 6, Visits: 34
Can you direct me too the example which demonstrates this feature.
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
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...

Best Regards,
Nevron Support Team


rash Pisal
rash Pisal
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)
Group: Forum Members
Posts: 6, Visits: 34

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.


rash Pisal
rash Pisal
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)
Group: Forum Members
Posts: 6, Visits: 34
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);  


Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
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...


Best Regards,
Nevron Support Team


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search