Hi,
I'm trying to force visibleMinimum and visibleMaximum.
It works when I give these values at initialisation time.
But I want to create buttons which activate some special periods (current year, last year, 24 months etc ...)
I tried this :
$("#bpap").button().click(function() {
var maxdate = data[data.length-1][0];
$('#chart1').jqChart('option', 'axes.visibleMinimum' , new Date(maxdate.getFullYear()-1, 0, 1));
$('#chart1').jqChart('option', 'axes.visibleMaximum' , new Date(maxdate.getFullYear()-1, 11, 31));
$('#chart1').jqChart('update');
});
(where data is the array wich contains the data of the chart)
but it don't work
Thx in advance
Laurent