android - 如何在条形图中将域标签置于条形下方的中心?

标签 android androidplot

目前,每个栏的域标签显示在每个栏的左侧下方,如下图所示:

enter image description here

有没有办法将标签放置在每个栏的中心下方?

最佳答案

这应该可以解决问题:

XYGraphWidget.LineLabelStyle style = plot.getGraph().getLineLabelStyle(XYGraphWidget.Edge.BOTTOM);
style.getPaint().setTextAlign(Paint.Align.CENTER);

关于android - 如何在条形图中将域标签置于条形下方的中心?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49131858/

相关文章:

android - Flutter 中类型 'Color' 不是类型 'MaterialColor' 错误的子类型?

android图表库--androidplot onclick问题

android - 如何在androidplot中更新图表

android - 如何删除 AndroidPlot 中图表周围的所有空间?

android - 如何获取Android手机外部存储中特定文件夹中的所有视频文件?

android - "Use command line client"选项在 Android Studio 3.2.1 中不可用用于颠覆

android - 有没有办法显示 Android Activity 堆栈?

安卓图表: achartengine or AndroidPlot?

AndroidPlot:支持绘制虚线

java - 如何将多个项目从自定义 Retrofit Converter 发送到 RxJavaCallAdapterFactory