You can refer to the code below to create the line
chart in code:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
Dim xp() As String = {"RX1", "RX2", "RX3", "RX4", "RX5"}
Dim yp() As Single = {0, 1, 2, 3, 4}
Dim Y1p() As Single = {2, 4, 6, 8, 10}
Dim y2p() As Single = {1, 3, 5, 7, 9}
With
Me.C1WebChart1.ChartGroups.ChartGroupsCollection(0).ChartData.SeriesList(0)
.X.CopyDataIn(xp)
.Y.CopyDataIn(yp)
End With
With
Me.C1WebChart1.ChartGroups.ChartGroupsCollection(0).ChartData.SeriesList(1)
.X.CopyDataIn(xp)
.Y.CopyDataIn(Y1p)
End With
With
Me.C1WebChart1.ChartGroups.ChartGroupsCollection(0).ChartData.SeriesList(2)
.X.CopyDataIn(xp)
.Y.CopyDataIn(y2p)
End With
End Sub
End Class
Regards,
Patrick
Please help me guys in generating the line graph codes, i need a monthly
sales report in 3 years. thanks in advance.
http://helpcentral.componentone.com/cs/forums/p/73950/200868.aspx#200868