Home › Forums › WinForms controls › Xceed Chart for WinForms › Add charts dynamicly
-
AuthorPosts
-
#19068 |
Hello ,
I want add charts dynamicly,but i can’t set position of y correctly
I add 3 charts in each row,when i add one row ,they will move down of my screen ,but not the position Y i set ,How can I do about?
thanks a lot
Imported from legacy forums. Posted by Hot (had 3280 views)
Can you provide more details of what you are doing? What is the type of series? What do you mean by “rows”? How do you set up the ChartControl and the Chart? Are you using more then one Chart? Do you have a code snippet showing what you do?
Imported from legacy forums. Posted by André (had 273 views)
For i = 0 To chkChoose.Items.Count – 1
If chkChoose.GetItemChecked(i) = True ThenIf k = 0 Then
Dim aChart As Xceed.Chart.Core.Chart = m_ChartControl.Charts(0)
Call InitializeStatusDate(“ProjectName – Delivery Term”, “2008-02”, -280, 10)
If iCount > 1 Then
Call InitializeXDate(dtLinevalue, aChart, 4, 0)
Else
Call InitializeXDate(dtLinevalue, aChart, 4, 10)
End IfCall InitializePercentY(aChart)
Call InitializeGreenLine(dtLinevalue, aChart)
Call InitializeHistogram(aChart)
‘Call AddButton(aChart)
ElseIf k > 0 Then
Dim bChart As Xceed.Chart.Core.Chart = m_ChartControl.Charts.AddIf (k + 1) Mod 3 = 1 Then
iStatusDateYY = iStatusDateYY + 260
‘iXDateXX = iXDateXX + 73
‘This part will be re caculate
iXDateYY = iXDateYY + 42
iXDateXX = 5
End IfIf (k + 1) Mod 3 = 1 Then
iStatusDateXX = -280
iXDateYY = iXDateYY
ElseIf (k + 1) Mod 3 = 2 Then
iStatusDateXX = 0
iXDateYY = iXDateYY
iXDateXX = 4 + (k Mod 3) * 34
ElseIf (k + 1) Mod 3 = 0 Then
iStatusDateXX = 280
iXDateYY = iXDateYY
iXDateXX = 4 + (k Mod 3) * 34
End If
‘bChart.MarginsCall InitializeStatusDate(“”, “”, iStatusDateXX, iStatusDateYY)
‘Call InitializeStatusDate(“ProjectName – Delivery Term”, “2008-02”, -280, 270)Call InitializeXDate(dtLinevalue, bChart, iXDateXX, iXDateYY)
‘Call InitializeXDate(dtLinevalue, bChart, 4, 77)Call InitializePercentY(bChart)
Call InitializeGreenLine(dtLinevalue, bChart)
Call InitializeHistogram(bChart)
End If
k = k + 1
End If
NextI add Chart based on chkChoose checkboxlist,and each row add 3 charts,there are three bar Series and a LineSeries in each chart,then the position will not correctly to show ,even though i set the position,but it will move down auto when add one row means add 3 charts,I dont know why!
Imported from legacy forums. Posted by Hot (had 497 views)
I can’t tell what could be wrong simply by looking at your code, there is too much method calls missing, and your description is still not clear enough.
If you are entitle to support, you can send a sample application to support@xceed.com, and we will have a look at it.
Imported from legacy forums. Posted by André (had 3681 views)
-
AuthorPosts
- You must be logged in to reply to this topic.