score:2
UPDATE: Include the code from the Highcharts web site, i.e. http://code.highcharts.com/highcharts.js. When I do this, I get pie charts!! Woot!
I have the same issue using different data. All of the line based charts plot correctly.
I copied your JSON to jsfiddle and it runs. Then I pasted your JSON into my project, same error, "c is undefined".
The only difference I can see is that when I do this:
$('#chart').highcharts({...});
I get $(...).highcharts is not a function, so I am using:
var chart = Highcharts.Chart({...});
Code for my pie chart that generates the same error.
var piechart = new Highcharts.Chart({
chart: {
borderColor: '#000000',
borderWidth: 2,
margin: 32,
renderTo: 'piechart',
type: chartType
},
series: [{
name: 'Channel',
data: [{
name: 'Web',
y: 75.6
},{
name: 'Mail',
y: 24.4
}]
}],
title: {
text: 'Revenue'
},
});
Which also runs in jsfiddler as $('#piechart').highcharts ..., but not my web page.
Source: stackoverflow.com
Related Query
- highcharts shows exception "c is undefined" for pie chart
- Highcharts display label for pie chart using html table as data source
- Highcharts not displaying data labels for Pie chart in arabic
- highcharts - chart names for multiple pie chart series in one chart
- HighCharts - Pie chart drilldown for multilevel (3 to 4 level)
- Highcharts - Display legend for Pie chart in two columns
- Highcharts - where to place style and changing style for one wedge in a pie chart
- highcharts pie chart color for dynamic data
- Gson to get Json value for a pie chart using Highcharts
- Highcharts how to make a set number of colors for pie chart data and drilldown data
- Highcharts to populate data for pie chart using json object
- Highcharts - How to combine unique legend for multi-series pie chart which perform same action for both series? (like onclick: show/hide)
- Highcharts - Pie chart Color for each slice
- Disabling a slice for a Highcharts pie chart when creating the chart
- Highcharts issues in [object Object]:0.0 for pie chart
- Highcharts piechart with slice animation and drilldown on click together throws exception in chart and breaks the pie chart
- Unable to rename Category column for Highcharts Pie chart
- Highcharts - disable hover for slices on pie chart
- HighCharts turn animation false for line chart
- How to display the value instead of percentage in a pie chart using jquery Highcharts
- HighCharts - Make the pie chart 100% of the div
- Place text in center of pie chart - Highcharts
- Displaying percentage inside pie item for highcharts
- Highcharts percentage of total for simple bar chart
- Highcharts - labels inside and outside a pie chart
- Highcharts saying undefined is not a function when trying to add a new chart
- Highcharts Pie Chart ignores percentageDecimals tooltip setting and has floating point inaccuracy issue
- Highcharts pie chart dynamically changes size
- Total of values in HighCharts Pie Chart
- HighCharts Pie Chart - Add text inside each slice
More Query from same tag
- highcharts - windrose stackLabel doesn't work properly
- Escape c# class property from JSON serialization (to remove quotes)
- Force Highcharts to display tooltip outside of div/container
- Highcharts zooming on x-axis with specific labelling
- High charts draggable not working for log scale
- Use value from prompt as highcharts export file name
- Trying to get Gridster to call functions like disable but $('.gridster ul').gridster().data('gridster'); not working
- BUG? RangeSelector Buttons not working correctly
- Highcharts :: Need to split y-axis from primary body of chart. Can I display this axis separately from the Highchart?
- Highcharts Highmaps the data does not match with polygons correctly
- How To Dynamically Truncate The Y-Axis Title On Chart Resize/Reflow In Highcharts
- Highcharts not rendering in Angular 2 when I use data from http.get
- Enable/Disable `Navigator` pane in Highchart
- highcharts: convert useUTC=true milliseconds to javascript Date object
- API values to set opacity levels to show overlapping points in highcharts scatter?
- Spring MVC: How to display Hashmap keys and values in highcharts
- Using JSON data in Highcharts
- Column Chart Show datalabel for null values - Highcharts
- How to create a semi circular gauge using high chart?
- High charts tooltip location issues
- Highcharts live update via EventSource not working
- Highcharttable.js date format x-axis
- Highcharts: Area clickable
- Highchart circle position by jquery
- Calculating on SetExtremes, Navigator behavior in highcharts
- Axis Label Alignment in highcharts
- Highcharts Treemap Data Labels issue in IE & Chrome
- Highcharts skip non-provided steps in a series
- ng serve causes error: "cannot use namespace as a type"
- Highstock dateTimeLabelFormats doesn't work