Profile Picture

Legend items repeating colors

Posted By Vipul Sheth 14 Years Ago
Author
Message
Vipul Sheth
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: Forum Members
Last Active: 14 Years Ago
Posts: 2, Visits: 1

Hello,

We are using nevron version 8.1.9.12. We have a surface chart with grid size of 41x41. With the following settings.

Dim surface3D As NGridSurfaceSeries = CType(chart.Series.Add(SeriesType.GridSurface), NGridSurfaceSeries)

        surface3D.Name = "surface3D"

        surface3D.PositionValue = 2.0

        surface3D.Legend.Mode = SeriesLegendMode.SeriesLogic

        surface3D.Legend.TextStyle.FontStyle.EmSize = New NLength(8, NGraphicsUnit.Point)

        surface3D.FillMode = SurfaceFillMode.Zone

        surface3D.FrameMode = SurfaceFrameMode.None

        surface3D.DrawFlat = False

        surface3D.Data.SetGridSize(41, 41)

 

        surface3D.AutomaticPalette = True

        surface3D.PaletteSteps = 10

        surface3D.SyncPaletteWithAxisScale = False

 

        surface3D.FrameColorMode = SurfaceFrameColorMode.Uniform

        surface3D.Legend.Format = "<zone_value>"

        surface3D.SmoothPalette = False

        surface3D.Legend.Format = "<zone_begin> - <zone_end>"

 

 

The problem is that the legend item repeats the color.eg. (legend item 9 has the same color as the 1st legend item and item 10 has the same color as that of item 2).How can we make sure that the legend do not repeat the colors when automatic palette is set to true?

Attached file contians the Image of the chart.

 

Thanks, in advance

 



Milen Metodiev
Posted 14 Years Ago
View Quick Profile
Forum Member

Forum Member (48 reputation)Forum Member (48 reputation)Forum Member (48 reputation)Forum Member (48 reputation)Forum Member (48 reputation)Forum Member (48 reputation)Forum Member (48 reputation)Forum Member (48 reputation)Forum Member (48 reputation)

Group: Nevron Team
Last Active: 14 Years Ago
Posts: 48, Visits: 1

Hi Vipul,

The automatic palette has 8 colors, so if you don't want repeating colors you have to set the PaletteSteps property to 8 or less. If you need more colors you can define a custom palette.

Best Regards,
Milen





Similar Topics


Reading This Topic