Group: Forum Members
Last Active: 6 Years Ago
Posts: 5,
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);.
|
Group: Forum Members
Last Active: Last Week
Posts: 3,054,
Visits: 4,000
|
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.
Best Regards, Nevron Support Team
|
Group: Forum Members
Last Active: 6 Years Ago
Posts: 5,
Visits: 34
|
Can you direct me too the example which demonstrates this feature.
|
Group: Forum Members
Last Active: Last Week
Posts: 3,054,
Visits: 4,000
|
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
|
Group: Forum Members
Last Active: 6 Years Ago
Posts: 5,
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.
|
Group: Forum Members
Last Active: 6 Years Ago
Posts: 5,
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);
|
Group: Forum Members
Last Active: Last Week
Posts: 3,054,
Visits: 4,000
|
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
|