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 Query
- Highcharts Pyramid Chart displays no data with JSON, PHP
- Passing data from PHP array to Highcharts chart with JSON
- 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
- how to make chart real time with 2 line and get data from php with highcharts
- Javascript, using Highcharts to display a chart of rankings with JSON Data
- HighCharts Data with JavaScript PHP JSON
- Highcharts real time chart with incoming Json data [FIXED[]
- Highcharts displays series names but missing data points from json source
- Highcharts data series issue with ajax/json and PHP
- 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
- How to populate a Highcharts axis with string formatted data from a PHP array
- 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?
- JSON data not showing in highstock Candlestick chart using PHP & MYSQL
- 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
More Query from same tag
- Highcharts custom styling connect and label
- Change color of selected point in HighCharts dynamically
- Highcharts:Legend and title overlap pie chart when updating data
- R highcharter editing dataLabels format
- Display year in x axis of line graph highcharts
- Highcharts: Disabling/Enabling enableMouseTracking after initial render
- Changing Color of Data Labels in HighCharts Bar Chart
- Stacked Bar And Scatter Alignment
- Highcharts: show data labels as relative value (percentage) on hover
- How to add Highchart Bar lines and lables?
- Same Highchart in different tabs not loading - Only first Tab loading
- In highchart Y-axis plotline labels get cut off
- Highcharts displays series names but missing data points from json source
- Feeding a combo highchart from Google Spreadsheet or json
- Having Several Units on Highcharts Spiderweb
- How To Call A Function To Make A Graph Using HighCharts in PHP
- stacked waterfall charts in highcharts
- Highcharts Angular - How to show group size in tooltip
- ajax call does not fire jquery code
- In highstock 1.3.0, when zooming in full, the graph draws all messed up
- Highchart Y-Axis Scale Values Missing
- Highcharts - Get container ID from barclick
- Highcharts: Render the bar chart from the bottom
- How to set category type with Highcharts and chartkick?
- how to show mutipal dynamic highcharts based on json data
- Highcharts Node.js export server : Connection error
- How to avoid cropped data labels in highcharts
- Highcharts gauge is render before the data is fetched by json
- Highcharts: export image show wrong color and line width if user change the color and/or line width
- How can I change the color of the selected point in Highcharts?