score:1
Instead of passing an Array
of final_data
, you are passing as a String
, So that its not working!
var fetched_data = [];
function getData() {
$.ajax({
type: "GET",
url: "http://localhost:5000/renderheatmap",
dataType: 'json'
}).done(function(jsonData) {
for (var i = 0; i < jsonData.length; i++) {
fetched_data.push(jsonData[i])
}
// document.getElementById('test_div').innerHTML = fetched_data;
// final_data = new Array(fetched_data);
Highcharts.chart('yourid', {
series: [{
name: 'Sales per employee',
borderWidth: 1,
data: fetched_data,
dataLabels: {
enabled: true,
color: '#000000'
}
}]
});
});
}
Hope this code Helps!!
Source: stackoverflow.com
Related Query
- How to pass a JSON through a variable to highchart heatmap data tag?
- how to get basic line highchart dynamically through json data
- How to pass json data to highcharts series?
- HighChart Heatmap with JSON data
- how to pass datalabels along with data to show it in tooltip in highchart
- how to show data json to 2 different highchart bar
- How to redraw highchart series with json data value?
- How to pass JSON data to update Highcharts Pie chart
- how to pass response data inside HighChart using angularjs
- how to fetch data from json file in highchart
- how to use json for Wind rose polar highchart insted of table data
- How can i set the json encode result to the highchart series data using getJSON
- Pass string variable to data Highchart
- How to pass dynamic data in highchart using angularjs?
- how to present json data on Highchart
- How to change JSON Format For load data to Highchart
- How to render Gantt Highchart from data source
- how to get highchart data from external 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 pass the another variable to the Highchart basic line which should be dynamic
- how to get a dynamically created graph in highchart using json data
- how to pass multi sereis data with dual y axis chart in highchart
- how to hide highchart x - axis data values
- creating highchart with ajax json data
- Plot Highchart Gauge with JSON Data
- How to display highchart y axis with constistant data
- Highcharts how to use JavaScript variable as series data source?
- How to pass custom data into Highcharts graph click event
- Highcharts: How to load data from JSON to xAxis.categories and series.data?
- How to fill data dynamically in Highchart
More Query from same tag
- highstock -- navigator time range does not update after adding/removing series
- Loading Json File Into Highmaps
- searching for a string in multiple arrays with forEach
- How to set second yAxis scale according to data from first yAxis
- Cannot give different values to diffrent Bar item click in HighChart
- Highcharts - Starting the chart from the extreme left
- Send variables from Symfony2 PHP file to js file
- Highcharts date not working
- Changing value of variable in Highcharts selection event in angular
- HighCharts Drill Down multiple series , how to get drill down on second item on drill down?
- Highcharts two date compare
- How to pinPoint highchart grouped barchart variables
- Highcharts/Highstocks: How to manually set the X-axis range
- Highcharts Column Series Point Object Click Function
- Highcharts bar chart with bar colored based on value
- Highcharts: is there a way to offset lines slightly so same coordinates do not overlap?
- HighCharts Not Adding Series Data Points
- Highcharts - svg vs digital
- Buttons not working on subsequent tabs to redraw chart in Highcharts
- Highchart add a text under single bar in bar chart
- Highchart.js X-axis labels - values are NaN
- How to change the layout and the alignment of the legend in the Highchart?
- How do I completely hide the chart title in a HighCharts chart?
- Highchart 2Layer 3D Donut chart
- Difference between highcharts and highstock during real time trace and xAxis with max value
- getting csv data into highcharts
- Highcharts stickyTracking
- DataGrouping not working on highcharts angular
- Highchart timedate format
- Highcharts - Adding a suffix to a tooltip in a multi-series chart