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
Adding custom contour levels
Re: Adding custom contour levels
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,
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
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,
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,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |