score:1
You can use eval(). Note that this is a security hole.
The problem is that you are passing a function via JSON. JSON does not support this.
Btw, jquery.parseJSON()
is deprecated, use JSON.parse()
Here's an example:
data = JSON.parse(x);
data.yAxis.labels.formatter = eval(data.yAxis.labels.formatter);
Source: stackoverflow.com
Related Query
- Parsing JSON for use with Highcharts using jquery .parseJSON or JSON.parse: how to remove quotes from function calls for formatters?
- Using PhantomJS to create HighCharts grahps server side for use in PDF creation (PHP) - results in exit code 11 from PHPs exec();
- How to use Highcharts React to create chart with multiple lines for same XAxis?
- iterate JSON response with jQuery for Highcharts
- Using JSON data with the jQuery highcharts plugin
- How can I create a specific Json output for use with Highcharts?
- Returning correctly formatted json response for use in highcharts with Laravel
- YQL finance data JSON format for use with highcharts
- How to use trellis chart with stacked column in Angular 10 using Highcharts
- How to use custom JSON (not GeoJSON) with Highcharts map?
- How to display the value instead of percentage in a pie chart using jquery Highcharts
- How to use highcharts with angular 5?
- How To Use Epoch Time With Highcharts Series Data?
- How to use highcharts with princeXML?
- Formatting JSON data monthwise for HighCharts using MySQL
- Rails ActiveRecord group_by & sum db results for use with Lazy HighCharts
- how to parse json into highcharts
- How to output JSON in python so it can be used for Geckoboard's Highcharts plugin
- How do I use an Highcharts Solid Gauge in angular 6 with typescript?
- Formatting JSON Data with ColdFusion for HighCharts
- How do I use Highcharts to display candlestick with small values?
- How to use Highmaps and Highcharts with Meteor?
- How to parse JSON into HighCharts line graph?
- How to dynamically update highcharts using jQuery UI sliders
- Parsing JSON data for Highcharts
- How to format my json data for stack column chart in HighCharts
- How to draw a bubble map with longitude and latitude using Highcharts in react
- Highcharts - In area chart how to use gradient color for multiple series?
- how to use object as series for Highcharts
- How to create data in Json format for highcharts
More Query from same tag
- How to avoid X axis to display decimal values
- Highcharts Multi-Depth 3d pie chart
- How to color places with single dots in area chart - highcharts?
- Highcharts annotations text to print in graph
- Highchart tooltip & events from external function
- Javascript convert 2D array to array of pairs
- Treat option as click event on select drop-down list
- Dynamic data binding to Highchart
- Highcharts: horizontal line the whole width
- Highstock chart offsets dates for no reason
- Click event not fire in highcharts tooltip
- Xaxis should get aligned at (0,0) in highcharts
- Pie Chart is not showing correct value due to asynchronous data retrieve in Angular JS
- Highcharts change colour of individual bar
- Highcharts animate marker
- Highstock - Timeaxis ticks not continuos
- highchart data from mysql using ajax
- How to pass parameters to react-highcharts?
- Highchart xAxis tick not starting at first data point
- Pass 3 values in highcharts series
- How to render Xaxes with time in hours, days, ... from 0 to infinity
- Adding a line of words towards the bottom of chart
- Highcharts, highlight point, without using click event?
- Highcharts: using Google Analytics to capture event actions for exporting the chart
- "The "highcharts" property was not passed" warning with constructorType="chart"
- Alias "ext.highcharts.HighchartsWidget" is invalid error in yii highchart
- Javascript High Charts changing Rec Rill hover color
- Passing data from Javascript MVC controller
- How to change the chart title dynamically on tooltip hover in the points Highcharts.. React JS
- high chart with large variates data and dynamically create y axis