Different color bars using multiple series

后端 未结 2 1270
萌比男神i
萌比男神i 2020-12-09 22:53

I am totally new to Android and i am trying to create a bar chart using AChartEngine, it has 3 bars and each bar should be different color. I tried using multiple series but

相关标签:
2条回答
  • 2020-12-09 23:26

    I handled it by setting the Type from Type.Default to Type.Stacked in the getBarChartView.

    ChartFactory.getBarChartView(TestSevenDay1.this, dataset, multiRenderer, Type.STACKED); 
    
    0 讨论(0)
  • 2020-12-09 23:27

    When you have bar charts with only one item per series, it is a good idea not to use renderer.setBarSpacing() and use renderer.setBarWidth() instead.

    0 讨论(0)
提交回复
热议问题