简体   繁体   English

如何使用jqplot仅显示堆叠条形图的标签总和?

[英]How show only sum of the labels for a stacked bar chart using jqplot?

Here I need to show only sum of the bars at the top, not needed the label on each stacked bar. 在这里,我只需要在顶部显示条的总和,而无需在每个堆叠的条上显示标签。 How can I remove the labels on each bar? 如何去除每个条形上的标签? ....When I have used the code pointLabels: {show: false} it removed all the labels, but i need the sum at the top. ....当我使用代码pointLabels:{show:false}时,它删除了所有标签,但我需要在顶部加上总和。

I have added pointLabels for each series and put show:false for each series except the last one. 我为每个系列添加了pointLabels,并为除最后一个系列之外的每个系列添加了show:false。

seriesDefaults: {
          renderer: $.jqplot.BarRenderer,
          rendererOptions:{barMargin: 25}, 

          pointLabels:{show:false,                  
                       stackedValue: true}
      },
        series:[
            {
        pointLabels:{show:false,                  
                       stackedValue: false}
      },
            {
        pointLabels:{show:false,                  
                       stackedValue: false}
      },
            {
        pointLabels:{show:true,      

                       stackedValue: false}
  },
        ]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM