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
- How can i change symbol in tooltips on a chart? HIGCHARTS
- Can't disconnect line chart with [null,null] and irregular intervals in Highcharts
- Show 1st of every month on highcharts
- Highcharts & tooltip error
- Highstock - Soft Min and Max is not working
- How can I get inner slice when clicking on an outer slice in a HighChart donut chart?
- combine series in legend
- How to display the collection in the library dynamically Highcharts - Bind collection with Highcharts in MVC
- Highcharts: significant decimals in the tooltip
- Messed up LineChart with highcharts
- How to set highchart boxplot size
- Angularjs scope lost when creating highcharts click function
- Incorrect JSON data format
- Combining categories for column chart with Highcharts
- How to draw branched chart in Highcharts?
- Highcharts: Bar chart: Label width : nowrap
- Adding round corners to Highcharts Bar Chart with stacked bars when value is 0
- Individual positioning of x-axis labels in a polar highchart
- How to adjust transparency of inactive series in highcharter with R
- Sending a value from html to controller in angularjs. Issue with scope?
- High charts error #19
- Javascript parameter is returned as both value and undefined
- Is there any way to draw a pie chart using highstock latest version?
- Highcharts logarithmic chart not displaying series on webpage
- Category in x-axis of second chart is not coming properly
- Selectable axis labels on highcharts
- HighCharts: Reduce size of chart
- HighCharts - do not crop series line on max value
- Not rendering VU-meter Gauge chart using HighCharts in Durandal
- highcharts datatable - function parameters