TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
-
Uta
- Newbie
- Posts: 5
- Joined: Thu Sep 22, 2011 12:00 am
Post
by Uta » Sat Apr 06, 2013 3:54 pm
I try to walk trough an ValueList an plott the Values from each value column line per line in an Grid, but the code delivers only one const. value and not all values in the value column?
Code: Select all
With frm.TChart1.Series.Item(t).ValuesLists
For s = 0 To .Count - 1
ActiveCell.Cells.Item(zeile, spalte).Value = .Item(s).Name & "_Value_" & frm.TChart1.Series.Item(t).TitleOrName
For zeile = 2 To .Item(s).Count
ActiveCell.Cells.Item(zeile, spalte).Value = .Item(s).Value
Next
spalte = spalte + 1
zeile = 1
Next
End With
What is wrong?
Thanks and Best Regards
-
Sandra
- Site Admin
- Posts: 3132
- Joined: Fri Nov 07, 2008 12:00 am
Post
by Sandra » Mon Apr 08, 2013 10:30 am
Hello Uta,
I suggest you two easy way, allow you to achieve as you want.
1.- See the sample demo,
All Features\Welcome !\Components\Chart Grid where the grid is populate automatically.
2.- You can taking a look in next lines of code that works in correct way here:
Code: Select all
private Sub InitializeChart()
Dim series1 As New Line(tChart1.Chart)
series1.FillSampleValues()
For i As Integer = 0 To series1.ValuesLists.Count - 1
Dim v As Steema.TeeChart.Styles.ValueList = series1.ValuesLists(i)
For j As Integer = 0 To v.Count - 1
listBox1.Items.Add(v(j))
Next
Next
End Sub
If my suggestions don't help you, I would be very grateful if you can try to arrange for us a simple project because we can try to reproduce your problem exactly here and try to provide you a good solution for you.
Thanks,