Page 1 of 1

Adding custom contour levels

Posted: Wed Sep 14, 2011 11:24 pm
by 15660116
I need to add custom contour levels to a contour chart.

I am using the following code:

For i = 0 To ContLevels
Dim ContLevelsVal2 = New Steema.TeeChart.Styles.ContourLevel(ContLevelsVal(i), i)
.Levels.Add(ContLevelsVal2)
Next i

or
.Levels.Add(20)
.Levels.Add(25)

This code does not work

Re: Adding custom contour levels

Posted: Thu Sep 15, 2011 8:11 am
by 15660116
This code worked:

Dim i As Integer
With .Levels
.Capacity = ContLevels
For i = 0 To ContLevels - 1
.Item(i).UpToValue = ContLevelsVal(i)
Next i
End With

Thanks,

Re: Adding custom contour levels

Posted: Thu Sep 15, 2011 10:03 am
by 10050769
Hello lilo,

Ok. I am glad that you can find a solution for your problem. And also I recommend take a look in demo project, concretely in the example All Features\Welcome !\Chart styles\Extended\Contour\Custom Levels, so I think can help you, too.

Thanks,