score:1
If the expected format is: [{...}]
then isn't your example above missing the outermost array? The PHP data returned currently is {...}
.
This could be resolved in the PHP with:
echo $_GET['callback']. '(['. json_encode($array) . '])';
Or in the JS with:
data = [input]
score:1
I think you have to replace this:
echo $_GET['callback']. '('. json_encode($array) . ')';
With
echo json_encode($array);
If you need to join the "callback" array with the $array, you have to do programmatically and not treating like strings....
Hope this helps.
Source: stackoverflow.com
Related Query
- Php to JSON passed thru to high charts
- High Charts - Set Solid Gauge Value from JSON
- Display the total count of json key-value pairs in the series in high charts
- High Charts stack column from json object
- Implementing High charts with PHP and Mysql
- Re-loading high charts with subsection of json data
- high charts parse json data
- High charts remove dots from the line graph
- World map paths data in react high charts
- knockoutJS dynamic chart with high charts
- change legend color high charts based on data
- High Charts fails to add series dynamically
- How to set the x value for High Charts error bar
- High charts logarithmic scale?
- PHP JSON Highcharts load database result
- High Charts - mouse over event on any part of graph
- Highcharts export charts as image on serverside with php
- How to generate multiple high charts in ng-repeat
- dynamically creating the values for high charts
- Passing a JavaScript function from JSON encoded PHP
- Resize High Charts based on grid layout width and height using react
- Highcharts Mysql Json arrays PHP
- Highcharts Mysql Json arrays PHP
- Laravel 5.5 Console TV Bar Chart High Charts multipleDatasets and label
- High charts queue chart updates after ajax with multiple charts in firefox
- high charts consuming high CPU
- Convert the y-axis values to Millions in dual axis high charts
- Dynamically setting xAxis rotation in high charts API
- Click event on bar high charts in angular 2
- High charts - Increasing the space between chart and title
More Query from same tag
- highchart remove first point
- Auto focus on a legend item in highcharts
- R scrape data from Highcharts
- Highchart - spider web chart - chart appears and part of the chart disappears
- Data from MongoDB results with empty Highcharts graph
- Highstock - Comparison chart should be start with 0%
- Highcharts, vue component. 3 charts in 1
- How do I use a heatmap with vue highcharts?
- draw linear-gradient line chart in highchart.js based on another series
- Highcharts - Hidden charts don't get re-size properly
- Highcharts X axis date bold
- Highstock Not showing max data value without Zoom
- highcharts graphs in bootstrap tabs are not displaying properly
- Highchart gauge: How to change tick position
- Highcharts or Fusioncharts,which one to select
- Highcharts: Double side's legend
- Error when adding highchartsjs to Vue3 app
- Pass data from objects to an array
- how to display two charts on one page using angular2
- High Chart value is not coming on last bar
- how to remove black color from circle?
- Shared Crosshair Highlighting /w Non-sequential Series
- highchart stacked bar plotting data doesn't work by javascript
- How to revert/reverse/undo setSize() in Highcharts
- How to add data to a custom HighChart's HighMaps map? joinBy?
- Highstock tooltip formatter if using split : true
- Highcharts grouped columns of varying widths that fill the entire space automatically
- High charts not displaying proper data timestamp
- Highcharts Arearange has no zoom animation above certain length
- Add static content into highchart exported pdf header