Contour Legend

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
lilo
Newbie
Newbie
Posts: 62
Joined: Wed Sep 07, 2011 12:00 am

Contour Legend

Post by lilo » 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.
Cont1.jpg
Cont1.jpg (138.27 KiB) Viewed 5187 times

lilo
Newbie
Newbie
Posts: 62
Joined: Wed Sep 07, 2011 12:00 am

Re: Contour Legend

Post by lilo » Mon Sep 26, 2011 11:24 am

I have found the solution. I need to set the Tchart1.Legend.SEries to Contour1.

It now works perfectly.

Thanks,

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Contour Legend

Post by Sandra » Mon Sep 26, 2011 11:43 am

Hello lilo,

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

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply