fool
Posts: 6
Joined: Wed May 11, 2011 8:41 pm

HighCharts is not defined for simple area chart

I am making one of the most simple stacked area charts, i followed the example on the demo site, but i still am unable to get the chart to work. I even deleted all my data so i only have one point per series, and am still unable to get this thing to work.

i have a jsfiddle: http://jsfiddle.net/QZUZU/7/

Here's my chart json:

Code: Select all

{
   "chart":{
      "renderTo":"chart",
      "defaultSeriesType":"area"
   },
   "title":{
      "text":"Test"
   },
   "xAxis":{
      "title":{
         "text":"Test"
      }
   },
   "yAxis":{
      "title":{
         "text":"Y Axis"
      }
   },
   "plotOptions":{
      "area":{
         "stacking":"normal",
         "lineColor":"#666666",
         "lineWidth":1
      }
   },
   ,tooltip : { 
      formatter : function() {
         return this.series.name;
      }
   },
   "series":[
      {
         "name":"Dataset 1",
         "data":[
            0.92784552845528
         ]
      },
      {
         "name":"Dataset 2",
         "data":[
            0.072154471544715
         ]
      }
   ]
}

any ideas on why this wouldnt work with highcharts?
jlbriggs
Posts: 1465
Joined: Tue Sep 21, 2010 2:33 pm

Re: HighCharts is not defined for simple area chart

It will probably work with Highcharts, but you are not including the Highcharts library in your fiddle.
fiddles: http://jsfiddle.net/jlbriggs/J9JLr/
fool
Posts: 6
Joined: Wed May 11, 2011 8:41 pm

Re: HighCharts is not defined for simple area chart

that was pretty dumb, but still doesnt work. updated with highcharts included: http://jsfiddle.net/QZUZU/8/
malonso
Posts: 62
Joined: Fri Mar 26, 2010 3:52 pm

Re: HighCharts is not defined for simple area chart

Not that it matters but the div id specified in the "renderTo" does not exist.
fool
Posts: 6
Joined: Wed May 11, 2011 8:41 pm

Re: HighCharts is not defined for simple area chart

fixed the id probem, but still broken

http://jsfiddle.net/QZUZU/9/
mthomas1973
Posts: 13
Joined: Tue Jun 29, 2010 8:37 am

Re: HighCharts is not defined for simple area chart

Hello.

Your reference to HighCharts needs to be case sensitive and should refer to Highcharts.

http://jsfiddle.net/FvnNy/

This seems to do the trick for you.
fool
Posts: 6
Joined: Wed May 11, 2011 8:41 pm

Re: HighCharts is not defined for simple area chart

thanks, can't believe i didnt notice that one letter C!!

Return to “Highcharts Usage”