Question

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.

Was it helpful?

Solution

I have added pointLabels for each series and put show:false for each series except the last one.

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}
  },
        ]
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top