Page 1 of 1

Contour Legend

Posted: Mon Sep 26, 2011 9:46 am
by 15660116
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.
Cont1.jpg
Cont1.jpg (138.27 KiB) Viewed 5189 times

Re: Contour Legend

Posted: Mon Sep 26, 2011 11:24 am
by 15660116
I have found the solution. I need to set the Tchart1.Legend.SEries to Contour1.

It now works perfectly.

Thanks,

Re: Contour Legend

Posted: Mon Sep 26, 2011 11:43 am
by 10050769
Hello lilo,

Thanks for your information. I am glad that you have found a solution for your problem :).

Thanks,