chart not displaying, but data is there

Jun 13, 2012 at 7:52 PM
Edited Jun 13, 2012 at 7:59 PM

Recently, my chart stopped displaying.  It used to work fine.  I am able to create the series and the chart.  When I look at the source of the page, the data all seems to be associated with the chart.  The background color displays for the chart, but the actual chart data does not display.  The following is the pertinent code....

Any assistance is appreciated.

''aspx page 

<highchart:lineChart ID="ddChart" Width="900" Height="450" runat="server" BackColor="Azure" />

''code behind (vb)

                    ' prepare chart
                    Dim yAxis As New YAxisItem()
                    yAxis.title = New Title("# of Days")

                    Dim xAxis As New XAxisItem()
                    xAxis.title = New Title("Date")
                    xAxis.type = AxisDataType.datetime
                    xAxis.dateTimeLabelFormats = New Appearance.DateTimeLabelFormats()


                    ddChart.YAxis.Clear()
                    ddChart.XAxis.Clear()
                    ddChart.YAxis.Add(yAxis)
                    ddChart.XAxis.Add(xAxis)

                    Dim heatingSeries As New Serie
                    heatingSeries.name = "Heating Days"
                    heatingSeries.color = "Red"

                    Dim coolingSeries As New Serie
                    coolingSeries.name = "Cooling Days"
                    coolingSeries.color = "Blue"

                    Dim heatingList(numDays) As Object
                    Dim coolingList(numDays) As Object
                    Dim dateList As New List(Of Object)
                    
                    '
                    ' populate lists
                    '

                    Dim seriesData As New SerieCollection
                    seriesData.Clear()

                    heatingSeries.data = heatingList
                    coolingSeries.data = coolingList
                      
                    heatingSeries.visible = True
                    coolingSeries.visible = True

                    seriesData.Add(heatingSeries)
                    seriesData.Add(coolingSeries)

                    Dim dataLabels As New PlotOptions.DataLabels
                    dataLabels.enabled = True

                    Dim plOptions As New PlotOptions.PlotOptionsLine()
                    plOptions.dataLabels = dataLabels

                    ddChart.PlotOptions = plOptions

                    ddChart.Title.text = "Degree Days"
                    ddChart.DataSource = seriesData
                    ddChart.DataBind()

 

 

 

 

 

 

 

 

 
Oct 17, 2012 at 6:01 PM

I found the same problem with jquery-1.8.0; the version of jquery under 1.7.2 works well.