score:2
looking at http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/demo/pie-basic/ the format for the pie chart data is two parts, the label and the data item.
in yours it looks like the series data is just a single array of integers.
so i think you'll need to change your series
object to accept a different format of data.
sadly the examples in the highcharts.net documentation are a little lacking and don't seem to have examples of this so you might have to look at what the intellisense has to offer.
the bottom line though is that your pie wedges need to be named in the data series, not as categories or anything else.
edit for some sample code
i was looking at their site and they have a help forum there with the following sample code amongst it
series.add(new serie
{
data = new object[] {
new object[] { "firefox", 45 },
new object[] { "ie", 24.8 },
new object[] { "chrome", 12.8 },
new object[] { "safari", 8.5 },
new object[] { "opera", 5.2 },
new object[] { "outros", 3.7 }
}
});
source: http://highcharts.codeplex.com/discussions/269347
i can't test this but from the context of the post it looks like it should do the job.
Source: stackoverflow.com
Related Query
- HighCharts populate Pie Chart with data from SQL Database
- Add dynamic data to line chart from mysql database with highcharts
- Dynamic chart using Highcharts with data from MySQL database
- HighCharts pie chart X-axies values are not displayed while trying to get data from MySQL database using PHP
- Highcharts with data from sql database
- How to populate a Highcharts axis with string formatted data from a PHP array
- highcharts example for using data from database with mvc
- Highcharts display label for pie chart using html table as data source
- loading highcharts with data from database
- Highcharts chart dynamic json data from sql
- Extract data series from a JSON array for a Highcharts chart with 2 y-axis
- HighCharts column chart populated with series data from a function
- Highcharts column chart with data from mongodb
- Highcharts to populate data for pie chart using json object
- PIE CHART - Data Visualization With DataTables and Highcharts
- Data Conversion from SQL, C# with Linq to JSON for Highcharts Line chart
- Highcharts to display area range and line chart with data from a CSV file
- Highcharts cloud issue with data source when duplicating chart
- how to make chart real time with 2 line and get data from php with highcharts
- Populating Highcharts chart with data received from MySQL
- Backfilling Highcharts chart with data from Ajax call
- Passing data from PHP array to Highcharts chart with JSON
- How to make multiple Y-axis with incoming series of data from database using Highcharts
- Cannot get Highcharts to show in 3D with data from mysql database
- Highcharts populate the categories with live data from MySQL
- Highcharts : draw a chart with data from XMLHttpRequest ()
- Highcharts (highcharts-ng) with ng-repeat worked, But need to pass the data for each chart from the attributes
- Highcharts with data from mysql database
- Populate Highcharts series with data from AJAX/JSON
- Server side chart .svg export with Highcharts and PhantomJS, error loading data from .csv file
More Query from same tag
- Highcharts - temperature gauge
- highcharts / Angular databinding with series
- Highcharts - where to place style and changing style for one wedge in a pie chart
- Datalabels is getting hidden outside the svg container in Sunburst Highchart
- Angular : loop over object data loaded from a webservice
- Highmap R (or) javascript - adding custom legend
- highcharts display percentage complete
- Dynamically change datetime format of xAxis Tick Label in highchart
- Highcharts Format tooltip for linkedTo: ':previous'
- Highcharts Line Chart - Highlight xAxis labels on point hover
- 24-Hour Time Event Chart using HighCharts
- Lazy Loading for multiple series unlike multiple points in highcharts
- Highcharts - two different values are being overlapped
- R - leaflet - highcharter tooltip
- Invert Y axis in Highcharts
- How to fire a jquery function onchange from an html element in highchart event on click?
- Highcharts - sorting JSON data JavaScript
- how to view graph based on date selection using highcharts
- Highcharter annotation on date x-axis not working - R
- How to put different categories value on X-Axis with in high-chart
- Can we disable zoom on highchart graph while graph is loading
- High charts using candlestick,vloum and MACD
- Highcharts Tick Positions are not aligned on multiple Y-axises
- Highcharts Donutchart: Avoid showing duplicate legend with nested charts
- high charts legend labels symbols issue can't get the rectangle
- Changing number of columns based on the zoom level : HighChart (column chart type)
- Highstock/Chart created from html table fails if null value in first table row
- In highcharts,tool-tip does not move when chart has high data unlike when it has low data
- Highcharts Polar Stacked Column chart - Legend is cut off
- Generate PDF from a page with highcharts on it with abcpdf