Contour Legend
Posted: Mon Sep 26, 2011 9:46 am
I am having trouble setting the contour legend correctly. The color pallette on the legend does not match the color pallete on the chart.
I using my own contour levels and marks:
With Contour1
.IrregularGrid = True
.Add(XCoord3D, ZCoord3D, YCoord3D) ', ColorCoord3D) ' X,Z and Y Coords of Chart
.PaletteStyle = Steema.TeeChart.Styles.PaletteStyles.Rainbow
.UsePalette = True
.Marks.Font.Size = ContLabelSize
.ContourMarks.AntiOverlap = True
.Active = True
.Visible = True
.ContourMarks.Visible = True
.NumLevels = ContLevels
.CreateAutoLevels()
With .Levels
.Capacity = ContLevels
For i = 0 To ContLevels - 1
.Item(i).UpToValue = ContLevelsVal(i)
Next i
End With
.CreateAutoLevels()
End With
This code works perfectly in the Activex version but in the dot net version.
I using my own contour levels and marks:
With Contour1
.IrregularGrid = True
.Add(XCoord3D, ZCoord3D, YCoord3D) ', ColorCoord3D) ' X,Z and Y Coords of Chart
.PaletteStyle = Steema.TeeChart.Styles.PaletteStyles.Rainbow
.UsePalette = True
.Marks.Font.Size = ContLabelSize
.ContourMarks.AntiOverlap = True
.Active = True
.Visible = True
.ContourMarks.Visible = True
.NumLevels = ContLevels
.CreateAutoLevels()
With .Levels
.Capacity = ContLevels
For i = 0 To ContLevels - 1
.Item(i).UpToValue = ContLevelsVal(i)
Next i
End With
.CreateAutoLevels()
End With
This code works perfectly in the Activex version but in the dot net version.