score:30
Accepted answer
it's because you're using json.parse
to try to parse an array, which is not going to work. just get rid of the json.parse
, and this should work as expected.
when you call json.parse
on something that's not a string, it's going to coerce it to a string by calling .tostring()
on it. if valpair = [1234567, 0]
, then valpair.tostring()
is going to yield 123457,0
(this is probably dependent on the js engine: i get 123457,0
in chrome). this is invalid json: the "unexpected non-whitespace character" is the comma.
Source: stackoverflow.com
Related Query
- JSON.parse: unexpected non-whitespace character after JSON data in javascript
- Getting data from Postgres in JSON format in ROR into a Highcharts javascript
- passing formatting JavaScript code to HighCharts with JSON
- Unable to hold onto variable after fetching JSON data
- Strange character in the Highstock source code
- Highcharts - sorting JSON data JavaScript
- Highcharts: Parse multi-variable JSON data
- array and object handling in javascript for getting highchart json data
- Parse Json Data in Ajax Post
- javascript Highcharts JSON data to HTML table
- Error: Data source must be a URL for refresh | console error | javascript | Highcharts
- HighCharts Bubble graph JSON as data source
- Highcharts csv data loading and parse into separate array and json
- HighCharts Data with JavaScript PHP JSON
- How to set json data from url on highchart and polling the json data after 1 sec to dislay on highchart using Angular js
- How to extract data fron json to javascript highchart?
- Highcharts displays series names but missing data points from json source
- JSON parse or removing double quotation in data getting form model or database in rails
- high charts parse json data
- Reload chart data via JSON with Highcharts
- Python: Read data from Highcharts after setExtreme
- Get Highcharts Series Data after Load
- How do I dynamically change a data point in Highcharts using JavaScript
- creating highchart with ajax json data
- Plot Highchart Gauge with JSON Data
- Optimize JavaScript DrillDown code
- How to pass json data to highcharts series?
- HighChart Heatmap with JSON data
- Send JSON data to highcharts pie from asp.net MVC controller in C#
- Highcharts how to use JavaScript variable as series data source?
More Query from same tag
- Highcharts & jQuery: add a mark by clicking with Shift key pressed, then process on release
- Highchart Renderer By min and max
- How to convert a multi-key hash to single key hash in Ruby for Highcharts
- How can i force Highcharts to use same symbols in Legend and Series?
- Highcharts: cutom tooltip (useHTML: true) z-index issue over resetZoomButton
- Hightcharts: Smooth zoom in/out distance
- Highcharts load pointStart from JSON. Milliseconds to UTC time?
- Effective way to display the data in the chart
- How to swap x-axis and y-axis in highcharts
- Selecting different types of charts
- Highcharts bar and line issue
- Why is enzyme failing to test react highcharts?
- Can I plot a diagonal plotline in highcharts?
- HighStock setup
- Highcharts markers to appear only on x axis ticks
- Highstock/highcharts - yAxis title width
- Old highchart data in react component when going back and forward
- How to create more gap between axis labels on a stacked bar chart?
- Change the legend in highcharts heatmap to show instead of a color bar, a set of fixed icons with hide and show on click
- How to pinPoint highchart grouped barchart variables
- Highcharts - Gray out only title in legend
- Set line opacity in highchart line chart
- Highcharts - graph - decades
- How to push data object to Highcharts pie graph
- How to align the xaxis tick mark center
- Highcharts yaxis price line
- Set a maximum for data grouping in Highstock charts to prevent from grouping
- JSFiddle API examples are broken
- Highcharts - update chart using ajax
- GWT - Adding a button to HighCharts