bmacquet
unread,Oct 27, 2011, 8:02:18 AM10/27/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jqplot...@googlegroups.com
I've tried this code :
$(document).ready(function(){
var ticks = ['A', 'B', 'C'];
plot4 = $.jqplot('chart4',
[
[[-60,1], [5,2], [10,3]],
[[10,1], [10,2], [20,3]],
[[20,1], [15,2], [30,3]],
], {
stackSeries: true,
captureRightClick: false,
seriesDefaults:{
renderer:$.jqplot.BarRenderer,
//shadowAngle: 135,
rendererOptions: {
barDirection: 'horizontal',
highlightMouseOver: true
},
pointLabels: {show: true, formatString: '%d'},
fillToZero: true,
fillAxis: 'x',
useNegativeColors: true,
shadow: false
},
series:[
{label:'Event 1', color: 'black'},
{label:'Event 2', color: 'green'},
{label:'Event 3', color: 'blue'},
],
legend: {
show: true,
location: 'e',
placement: 'outside'
},
axes: {
yaxis: {
renderer: $.jqplot.CategoryAxisRenderer,
ticks: ticks
},
}
});
});
Everything is fine if "stackSeries" is false (see attached image "Bar-OK") but i don't figure out why with "stackSeries: true", all values of the first serie are negative (see attached image "Bar-KO")
Any ideas ? Maybe it's a bug ?
Thanks,
BMA