highcharts 1.0 line chart example

Sep 9, 2013 at 7:34 PM
Hi,
I'm using HighCharts 1.0 in my current project. Can someone point me to a sample code to generate a line chart using vb/c# .net. I tried to google around but not able to find anything that would help me. This is the code that I have
LineChart.Title = New Title("Line Chart")

Dim dataLabel As String = "'<b>' + this.point.name + '</b>: ' + this.y"
Dim dataTooltip As String = "this.point.name + ': ' + this + "

LineChart.PlotOptions = New PlotOptions.PlotOptionsLine With {.dataLabels = New PlotOptions.DataLabels With {.enabled = False, .formatter = dataLabel}, .allowPointSelect = True}
LineChart.YAxis.Add(New YAxisItem() With {.title = New Title("Number of Items")})
LineChart.XAxis.Add(New XAxisItem() With {.categories = New Object() {"Jan", "Feb", "Mar", "Apr"}})

Dim series As New Collection()
Dim series1 As Object() = {"10", "12", "23", "17"}
Dim series2 As Object() = {"20", "22", "13", "27"}
series.Add(New Highchart.Core.Data.Chart.Serie With {.name = "series1", .data = series1})
series.Add(New Highchart.Core.Data.Chart.Serie With {.name = "series2", .data = series2})

LineChart.Series.Clear()
LineChart.DataSource = series
LineChart.DataBind()
Thanks,
Ananth
Sep 9, 2013 at 8:31 PM
I found the problem. I see the container in which I put in the data is not of the right fit.
Marked as answer by Vangi on 10/24/2013 at 6:05 AM