Android GraphView - 如何用颜色填充折线图下的区域?

标签 android graph android-graphview

我创建了一个线图,它看起来像这样:

enter image description here

但我想像这样填充图形下方的区域:

enter image description here

如何实现此功能?你能帮帮我吗?

最佳答案

使用setDrawBackground 方法启用它。

LineGraphView graphView = new LineGraphView(this,"My Line Graph");
graphView.setDrawBackground(true);

关于Android GraphView - 如何用颜色填充折线图下的区域?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25306793/

相关文章:

java - 如何检查firebase recylerview在android中是否有值或者为空?

android - 如何自定义AppCompat Material按钮样式?

android - 如何更改 facebook android sdk 登录按钮的样式?

ios - Coreplot 注释绘制在轴上

algorithm - 找出图中无用的边

android - 在 Android 应用程序中为蓝牙脉搏率传感器创建实时图表

javascript - React Native 在获取数据完成后从 Promise 中获取值

python - Matplotlib:使 x 轴更长

Android GraphView 4.x - 条形图不适合

android - GraphView 库删除系列