Jqplot堆叠的Barchart重叠点标签的较低值

问题描述 投票:1回答:2
<<

我正在使用Jqplot堆叠的条形图。它的工作正常,但是问题在于点标签重叠的黄色和蓝色条的值都较小。

有人可以帮我解决这个问题,以显示两个点的标签而两个值都不重叠吗?

Jqplot选项以重新计入已加粗的条形图

ticks =['Jan 14', 'Feb 14', 'Mar 14', 'Apr 14', 'May 14', 'Jun 14', 'Jul 14', 'Aug 14', "Sep 14", 'Oct 14', 'Nov 14', 'Dec 14']; var s1 = [73, 112, 307, 849, 1591, 1016, 647, 445, 60, 30, 10, 1]; var s2 = [4338, 5114, 3484, 2282, 89, 35, 8, 3, 2, 1, 1, 0]; plot3 = $.jqplot('chart3', [s1, s2], { // Tell the plot to stack the bars. seriesColors: [ "rgb(255, 78, 80) ", "rgb(29, 171, 54)"], animate: !$.jqplot.use_excanvas, stackSeries: true, captureRightClick: true, seriesDefaults:{ renderer:$.jqplot.BarRenderer, rendererOptions: { // Put a 30 pixel margin between bars. barMargin: 30, highlightMouseDown: true }, pointLabels:{ show:true, stackedValue: false } }, series:[ {label:'Inflight'}, {label:'Completed'} ], axes: { xaxis: { ticks: ticks, renderer: $.jqplot.CategoryAxisRenderer }, yaxis: { padMin: 0 } }, legend: { show: true, location: 'n'/*, placement: 'outside'*/ } });
我正在使用Jqplot堆叠的条形图。它的工作正常,但是问题在于点标签重叠的黄色和蓝色条的值都较小。有人可以帮我解决这个问题,以显示我的...
javascript jquery jqplot bar-chart
2个回答
2
投票
您可以使用

ypadding


0
投票
解决此问题的最佳方法是使用CSS将文本旋转-45度。.非常简单..
© www.soinside.com 2019 - 2024. All rights reserved.