score:2
Accepted answer
I guess the problem is due to asyn nature of $.getJSON
, when you call: $('#chart').highcharts({
right after that, the response from the server does not arrive yet. Try changing it to:
$.getJSON(url, function(data) {
$.each(data, function(index, data) {
zone_name.push(data.name);
male_pop.push(parseInt(data.pop_male));
female_pop.push(parseInt(data.pop_female));
});
// $('#chart').highcharts({
});
Source: stackoverflow.com
Related Query
- Highchart doesn't show the graph : error adding javascript array in series
- How to show the transition in highchart series graph without refreshing the html webpage?
- Highchart - show / hide an y-Axis without hiding the series
- c# WPF Webbrowser with Highchart, Javascript from external source not working "An error has occurred in the script on this page"
- Javascript Highcharts: series datalabel formatter function to loop data not formatting all data form the array
- Highcharts series doesnt show data and render the chart
- How to add a vertical plot line in multiple line series and show the tooltip on Plot line in highchart
- Is it possible to show the chart if the value of array bracket is null or empty in the HighChart
- Update Series Array on HighChart after editing the chart
- How to show series dataLabels inside the Highchart pyramid in angular
- Show multiple Y axis stacked one upon the Other in Highchart Line type graph
- How can I fix the error #17 "The requested series type does not exist" error when trying to display a highcharts graph in Vue.js?
- highcharts with dynamically adding multiple series from JavaScript array name value pair
- How to rotate javascript highchart line graph -90 degree without affecting the data values
- Highcharts error #17 when adding series to the chart using angular 4
- Highchart series update in javascript
- Adding new HighChart Series
- Show specific series values in the stack label using highcharts
- Having trouble just getting the Highchart to show
- How can I extend the lines of this Highchart series to the edges of my chart area?
- How do I hide a Highcharts series from the chart, but always show it in the tooltip?
- Show Highchart series horizontally below each other
- Several Series with the same xAxis data in HighChart
- Waterfall Highchart to start some of the columns in between the series with 0 y-axis
- How to set series-label to false by default and change the color of series label text in highchart
- Adding data to a highchart chart using an array with IDs
- Why won't the legend in my highchart show values?
- Highcharts show the same yAxis start and end value with multiple data series
- How show all tooltips split in graph with many series
- Error while creating the chart using highchart
More Query from same tag
- dynamically generating json from json for highcharts heap map chart using ajax
- How to get data for series and categories in highcharts-convert.js from mysql
- Highchart yAxis opposite is not working in type datetime
- I have no direct access to code but wonder if I can append my chart data points to a log file
- Highcharts: only display stack labels if there are multiple stacks?
- after using for loop all my column graphs are plotted in single color i need each bar in different color in highcharts
- Highcharts adding new data points in VueJS / Vuex
- HighCharts: Is this.percentage accessible in the tooltip formatter?
- *Highcharts* Tooltip formatter for a combined chart
- data not getting displayed/plotted in highchart
- Show tooltip programmatically in StockChart for multiples series (highchart)
- hPlot pie chart - show percentage in tooltip instead of absolute values
- How to assign chart title as exporting filename?
- set individual color for each bar in bar chart using highcharts
- HighCharts Data with JavaScript PHP JSON
- Facing issues with Highcarts.Chart
- Issue with json to Highstocks series data, only navigator shows data at some zoom levels only
- highcharts: how to update marker fillcolor using angularjs
- Angular Highcharts hideNoData not working dynamically
- Color each point individually in column chart highcharts
- Data Grouping - Monthly (end-of-month)
- Highstock returns incorrect Width after print
- Highcharts tooltip hidden behind second chart
- How do I prevent Highcharts from truncating categories?
- Get y-value of points along the generated line graph in Highcharts
- How to change tooltip valueSuffix after chart is rendered?
- Yii2 - Connect to database inside Controller Action
- Highcharts Showing negative values on tooltip
- highcharts find point with given x value
- Highcharts pie rendering in conflict with legend