This project is read-only. VB What am i doing wrong ?

Mar 6, 2014 at 11:25 PM
Edited Mar 6, 2014 at 11:27 PM
I'm just trying to simply do the "Simple" Tut on getting this to work in my web page. Unfortunately the only example given is C# so i had to try and translate this into VB.
This is what i came up with, ive added the references and the <Scripts>, but when i run.... nada. no errors but no graph either. Please Help!
Imports DotNet.Highcharts.Options
Imports DotNet.Highcharts.Attributes
Imports DotNet.Highcharts.Helpers
Imports DotNet.Highcharts.Enums

Public Class Contact
    Inherits Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load

        Dim Chart = New DotNet.Highcharts.Highcharts("chart")

        Dim xAxis As New XAxis
        xAxis.Categories = ({"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"})

        Dim ser As New Series
        ser.Name = "Page"
        ser.Data = New Data(New Object() {29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4})

        ltrChart.Text = Chart.ToHtmlString

    End Sub
End Class
Mar 7, 2014 at 8:08 PM
I was able to get your sample code to work. Make sure that the path to the scripts is correct in your references.
Marked as answer by Vangi on 4/22/2014 at 6:08 AM