I'm having trouble aligning the labels within the stacked bar chart. Is there a way to center them within each bar? In the image below, most labels seem to be centered, but there is one that is at the bottom. I've tried adding margins in the CSS, but it doesn't work. Adjusting the x/ypadding in the pointLabel option only moves the labels horizontally, not vertically.
var s1 = [31, 10, 20, 44],
s2 = [15, 4, 7, 16],
ticks = ['May', 'June', 'July', 'August'];
$.jqplot('graph_pnl2', [s1, s2], {
stackSeries: true,
seriesColors:['#73C774', '#C7754C'],
seriesDefaults:{
renderer:$.jqplot.BarRenderer,
rendererOptions: {fillToZero: true},
pointLabels: { show: true, location: 'e', xpadding: 25, ypadding: 25},
},
legend: {
show: false,
placement: 'insideGrid'
},
axes: {
xaxis: {
renderer: $.jqplot.CategoryAxisRenderer,
ticks: ticks
},
yaxis: {
pad: 0,
tickOptions: {formatString: '%d'}
}
}
});