请回忆一下这段代码: How to remove the shadow below the center point?
当我显示该图表并稍后切换到条形图/饼图时,左轴标签设置为红色。我无法理解这一点,因为我从不修改那个变量。我确定这是一个错误。
解决方法是在生成图表之前明确设置颜色:
_chart.getAxes().getLeft().getLabels().getFont().setColor(Color.fromArgb(0xffffffff));
此外,相关的函数调用可能如下:
_chart.setAutoRepaint(false);
_chart.removeAllSeries();
_chart.getAxes().getBottom().setIncrement(1);
答案 0 :(得分:0)
你是对的。处理CircularGauge时,图表轴将恢复错误的默认Ticks& MinorTicks笔和标签字体。我刚刚为下一个维护版本更正了它。