score:0
I'm not 100% sure what's going wrong here, but there are a few things I am concerned about.
Firstly, your JSON is not valid. x, y and name should be quoted:
{ "x": 1406199133117, "y": 5, "name": "Test" }
I am concerned about:
String json = new Gson().toJson("{x:1406199133117,y:5,name:'Test'}");
Why not simply write the string ?
resp.getWriter().write("{\"x\":1406199133117,\"y\":5,\"name\":'Test'}");
Lastly, I would return the entire array, including the [] braces rather than adding them in the client.
Hopefully some of that helps :)
Source: stackoverflow.com
Related Query
- Set HighCharts data from JSON string with setData() function
- How to populate a Highcharts axis with string formatted data from a PHP array
- Extract data series from a JSON array for a Highcharts chart with 2 y-axis
- HighCharts column chart populated with series data from a function
- HighCharts activity gauge populated with series data from a function
- Data Conversion from SQL, C# with Linq to JSON for Highcharts Line chart
- Parsing JSON for use with Highcharts using jquery .parseJSON or JSON.parse: how to remove quotes from function calls for formatters?
- Passing data from PHP array to Highcharts chart with JSON
- Highcharts displays series names but missing data points from json source
- Reload chart data via JSON with Highcharts
- Send JSON data to highcharts pie from asp.net MVC controller in C#
- Highcharts with JSON data and multiple series
- Pass Data String as parameter to a Function for HighCharts
- Add dynamic data to line chart from mysql database with highcharts
- Highcharts - Global configuration with common code and unique data & Headings
- Formatting JSON Data with ColdFusion for HighCharts
- Highcharts with ajax and json data what am i doing wrong?
- Highcharts bargraph from json data in angularJS
- Highcharts - set yAxis.max to max value from data
- Formatting JSON from a Pandas data frame for Highcharts within a Django template
- How to make Highcharts fetch data from external JSON file?
- dynamic highcharts with json data
- Retrieving JSON data for Highcharts with multiple series?
- Highchart, edit data from function call with arguments
- Extracting data from a JSON call to a Postgres table for use in Highcharts (without PHP)
- Getting data from Postgres in JSON format in ROR into a Highcharts javascript
- passing json values to highcharts from .net code behind
- Charts using Highcharts with multiple series from JSON
- passing formatting JavaScript code to HighCharts with JSON
- Highcharts polar chart wind rose data from JSON
More Query from same tag
- highchart click event Brakedown browser in iphone
- Convert CSV webservice into multiple year Highcharts line graph
- Get the JSON encode result from the Controller to View
- Showing tooltip on right side of the column in a vertical bar chart
- Highcharts - x-axis date interval data values count must be 12
- highcharts are not rendering in grails views
- Force Highcharts to display tooltip outside of div/container
- Highchart, diffrent number of categories and series data
- highcharts not refreshing chart when page refreshes
- Radial Pie Chart Datalabels in Highcharts
- Adding information to xAxis - r shiny
- Show label of stacked columns only on hover (and also the previous and next column)
- angularjs, HighCharts (Aw, Snap!) crash
- Javascript Pie Chart Colors
- Highchart maps / Highmaps update vue data properties on clicking country
- world map not displaying - Angular Highcharts
- Highcharts Pie Chart Slice Errors
- Highcharts - Property value does not exist on type Point Angular 12
- In highcharts.js, how to make custom ticks with an image
- Multi Color dataLabel in Bar Highchart
- How to save export highchart image with out dialog box?
- Highcharts Y axis bounds ignore floor/ceiling
- Create a new chart for each new page
- How to make the highchart fully occupied with the div that had set?
- Advanced LINQ Grouping and Projection Query for Hierarchical Data (EF 4.0 + LINQ + ASP.NET MVC + HighCharts)
- Remove the second tooltip in Tree map using Highcharts
- Highchart: How to prevent the "flashback" in animation?
- How to increase spacing between sideway bar charts in highcharts?
- Exporting chart with Highchart display a badly formed chart
- highcharts lang.resetZoom doesn't appear to work