![](/img/trans.png)
[英]MPAndroidChart I'd like to change the color of the graph at the top of the limit line
[英]MPAndroidChart how to change the color of the bar chart past the limit line?
我认为您可以使用stackedBarChart
实现这一点。
在文档中,您可以看到如何为每个条添加数据。 这样,您将按如下方式设置条形图的数据:
BarEntry(xPosition, floatArray(belowLineNumber, aboverLineNumber)
对于颜色,您只需要为数据集添加一个颜色列表(在您的特定情况下有两种颜色):
dataSet.color = listOf(YourColor1, YourColor2)
希望能帮助到你!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.