Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
184
rated 0 times [  186] [ 2]  / answers: 1 / hits: 26305  / 11 Years ago, tue, september 17, 2013, 12:00:00

I am trying to get the series data from a Highcharts chart once it has been called and loaded to the page.



So far I've only been successful in getting a bunch of strings that isn't what I am after obviously. Wonder if someone can help me with this one.



jQuery Code:



success: function (chartData) {
if(chart != undefined) {
$('#meterloader').hide();
$.each(chart.series[0], function(value) {
alert(value);
});
} else {
$('#meterloader').hide();
$('#meterbox').html(<div><p class='textcentre bold red'>There was an error loading the chart.</p></div>);
}
}


Thanks in advance.


More From » jquery

 Answers
7

you need plotted data from the chart,
then try



chart.series[0].data


if you need all the options from series then try



chart.series


this will return the entire series structure of the chart.



I hope this is useful for you.


[#75656] Sunday, September 15, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
sonja

Total Points: 541
Total Questions: 113
Total Answers: 114

Location: Anguilla
Member since Sun, Jan 29, 2023
1 Year ago
sonja questions
Mon, Nov 30, 20, 00:00, 4 Years ago
Sun, Oct 11, 20, 00:00, 4 Years ago
Thu, May 21, 20, 00:00, 4 Years ago
Sun, Nov 10, 19, 00:00, 5 Years ago
Mon, Aug 26, 19, 00:00, 5 Years ago
;