hello,
i've used this syntax to redraw the chart:
[
Code:
var series4 = $('#jqChart4').jqChart('option', 'series');
var newaxes4 = {
type: 'category',
location: 'bottom',
categories: [<?php echo $categories_d ?>],
zoomEnabled: true,
labels: {
font: '13px sans-serif',
fillStyle: '#eeeeee',
angle: -45
},
resolveOverlappingMode: 'hide',
};
var axes4 = $('#jqChart4').jqChart('option', 'axes');
var newSeries4 = {
title:'Today statistics',
type: 'column',
fillStyle: 'gray',
data: [<?php echo $today_data; ?>],
};
series4.splice(series4.length - 1, 1);
series4.push(newSeries4);
axes4.splice(series4.length - 1, 1);
axes4.push(newaxes4);
$('#jqChart4').jqChart('update');
the redrawing is trigged when i click on a button.
I've noticed that when i click once, every thing is fine (the data series change and so do the labels on the bottom axe).
But when i click twine, i have two bottom axes displayed, i don't know why.
Thank you