Hi,
$('#chart1').data('jqplot');
should return the jqplot object after creating a plot by $.jqplot("chart1", data, options). The chart is shown as expected on the page.
However, for
$(window).resize(function()
{
var chart = $('#chart1').data('jqplot');
alert(chart)
});
I get "undefined", although $('#chart1') returns a valid node with e.g. $('#chart1').jqplot returning the jqplot function. Am I doing something wrong?
For some reasons I need to retrieve the jqplot object from dom and I can not use the jqplot object returned by $.jqplot("chart1", data, options).
Thanks,
Helmut