我試圖使用ArrayList生成使用fusionfree 圖形但是我不能得到它的工作,它不斷出現在數組列表融合自由圖表和ArrayList
Dim util As New Util()
Dim region As New List(Of String)
Dim int1 As New List(Of Integer)
For Each rows As GridViewRow In GridView1.Rows
' Selects the text from the TextBox
Dim regions As Label = CType(row.FindControl("label1"), Label)
region.Add(Label1.Text)
int1.Add(10)
Next
Dim strXML As String, i As Integer
'Initialize <graph> element
strXML = "<graph caption='Sales by Product' numberPrefix='$' formatNumberScale='0' decimalPrecision='0'>"
'Convert data to XML and append
Dim x As Int32
x = 0
For i = 0 To (region.Count) - 2
x = (x + 1)
'add values using <set name='...' value='...' color='...'/>
strXML = strXML & "<set name='" & region.Item(x) & "' value='" & int1.Count & "' color='" & util.getFCColor() & "' />"
Next
'Close <graph> element
strXML = strXML & "</graph>"
'Create the chart - Column 3D Chart with data contained in strXML
Return FusionCharts.RenderChart("../FusionCharts/FCF_Column3D.swf", "", strXML, "productSales", "600", "300", False, False)
我得到它的工作我通過,而不是在GridView更有意義的數據表決定環路 – MyHeadHurts 2011-02-09 21:13:53