score:2
Accepted answer
Looking at the pyramid example, the data must be in the form of a single series with each data point as an array of [name, value]
. You have two options, change your PHP to output the correct format or modify the PHP output in javascript. Since you didn't post your PHP code, I'll do the later:
var data = {"success":1,"data":[{"name":"John Spoon","data":300}, {"name":"Dave Jones","data":200},{"name":"Other","data":500}]};
options.series = [{
data: $.map(data.data, function(i){ // loop outputted data
return [[i.name, i.data]]; // coerce into an array of [name,value]
})
}];
Here's a working example.
Source: stackoverflow.com
Related Articles
- Highcharts Pyramid Chart displays no data with JSON, PHP
- Reload chart data via JSON with Highcharts
- Returning JSON file with cURL to use data in a HighCharts stock chart
- Extract data series from a JSON array for a Highcharts chart with 2 y-axis
- Data Conversion from SQL, C# with Linq to JSON for Highcharts Line chart
- Highcharts cloud issue with data source when duplicating chart
- Javascript, using Highcharts to display a chart of rankings with JSON Data
- Passing data from PHP array to Highcharts chart with JSON
- Highcharts real time chart with incoming Json data [FIXED[]
- Highcharts displays series names but missing data points from json source
- Highcharts with JSON data and multiple series
- Add dynamic data to line chart from mysql database with highcharts
- Highcharts - Global configuration with common code and unique data & Headings
- Show more data on Gauge chart with Highcharts
- Formatting JSON Data with ColdFusion for HighCharts
- Highcharts with ajax and json data what am i doing wrong?
- How to format my json data for stack column chart in HighCharts
- Splitted bar chart for paired data with highcharts
- How to Build a Column Chart in Highcharts with Data Entered Dynamically Within a CMS
- dynamic highcharts with json data
- Retrieving JSON data for Highcharts with multiple series?
- Highcharts add point to line chart with json
- Add different symbols to highcharts chart with dynamic data
- passing formatting JavaScript code to HighCharts with JSON
- Highcharts polar chart wind rose data from JSON
- Highcharts area chart hide graphs with one data point
- JSON Data Map Issue with HighCharts + Ajax
- Highcharts GANTT chart - need to allow category with no data
- highcharts Scatter Chart not loading with LOTS of data
- Highcharts: Wind Rose chart with JSON data
- Is it possible to plot more than 35000 points in Highcharts
- Highcharts: Dynamically change / add axis attributes
- Getting multiple HighCharts from one call
- HighCharts showing wrong month
- how to show cross hair in highchart always by default
- How to remove the decimal .00 from the default highcharts configuration?
- How do I filter countries/us/us-all-all to only show ca and nv?
- Different ToolTip text For Links and Nodes in Highcharts Sankey Charts
- Multiple time series in stacked column chart
- How to adjust size of rectangles in treemap using highcharts
- I can't return my json object
- Using Moment to output Date.UTC() object for HighCharts?
- Javascript Highchart
- HighStocks Tooltip is not working properly
- Highcharts -- how to change line width programmatically and prevent resetting line width?
- Highcharts: How to make line touch left + right sides
- JSON for high chart imported with json.load generated error when using json.dump
- How to pass JSON data to update Highcharts Pie chart
- HighCharts - How can I split data labels in Sankey diagram?
- HighCharts Month/multiple data array error