I'm calling an XML file and using a pie chart. Only have 2 columns of data.
Getting the error. Pie Chart Error: PieChart.ColumnIndex must be a numeric column (or -1 for auto-search)
I've tried setting this property and keep getting same error.
I'm using DataSource and Databind.
Me.chartLPS.DataSource = ds.Tables(0).DefaultView
Me.chartLPS.DataBind()
When I bind this same DS to a GridView, the data displays in the grid perfect. Any help would be greatly appreciated.
That worked great!! Here is my very sloppy code however. I'm sure there is a better way but this works.
Dim strURL As String
xml_doc = New XmlDocument
strURL = "c:\test.xml"
ds.ReadXml(strURL)
dt = New DataTable
.Add(New DataColumn("name", GetType(String)))
End With
dt.Rows.Add(ds.Tables(0).Rows(x).Item("name"), ds.Tables(0).Rows(x).Item("complete"))
Next