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);.
|