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 Articles
- 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
- 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?
- High Charts - mouse over event on any part of graph
- How to generate multiple high charts in ng-repeat
- dynamically creating the values for high charts
- Resize High Charts based on grid layout width and height using react
- 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
- High Charts not working
- Is it possible to reparent the high charts legend?
- Is there a way to scale the custom marker of a high charts scatter chart?
- Use of DotNet HighCharts dll to make charts in code behind
- Jump Line charts in High Charts
- High charts AddAnnotation is not a function for dynamic adding
- Highchart Treemap with Multiple series and should behave live heat map
- HTML page lose formatting on external server
- JavaScript - Export Div with SVG chart + HTML as and Image
- Highcharts. How to start areaspline chart from start y axis?
- Shows a single chart on Highcharts
- Highcharts datalabels Float Number including Zero after dot: x.0 not only x (exact decimals as in inputdata)
- Highcharts: how to draw line segments with click-and-drag and without chart to scroll?
- Dotted lines in highcharts.net
- Highcharts blank chart with x and y axis
- How to display only last data point on highcharts?
- Ajax Calls in highchart.js
- Highcharts: Control show/hide of a div by clicking pie chart slices
- Get the exact highcharts data which was used to render a chart
- How do I update an external DIV when a user swipes the finger along an Highcharts Area graph?
- Java Server Based Highcharts and width limitation
- Highcharts: X and Y Axis cross at zero in scatter chart
- HIghcharts how to change values and ranges in the Y-axis
- Highcharts Detect mouseOver event only in the colored area
- HighCharts: Compare the series data with each other and show percentage
- Highcharts spline chart not rendering in IE and mozilla