【发布时间】:2015-05-11 10:08:04
【问题描述】:
我将 MPAndroidChart 从 v1.7 升级到 v2 并且不得不更改一些东西。 其中一件新事物是,我现在似乎有一个最大值的顶部边框。
我试图隐藏所有边框的代码是这样的:
LineChart graph = (LineChart) connectionView.findViewById(R.id.graph);
graph.setDrawGridBackground(false);
graph.setDrawBorders(false);
graph.setDescription("");
YAxis yr = graph.getAxisRight();
yr.setEnabled(false);
yr.setDrawAxisLine(false);
YAxis yl = graph.getAxisLeft();
yl.setValueFormatter(formatierer);
yl.setShowOnlyMinMax(true);
yl.setDrawAxisLine(false);
XAxis xl = graph.getXAxis();
xl.setPosition(XAxis.XAxisPosition.BOTTOM);
xl.setDrawGridLines(false);
xl.setDrawAxisLine(false);
yl.setAxisMaxValue((float) graphpoint_max);
仍然 - 我有一条线显示最大值。我想在 YAxis 上有值,但没有水平轴线/边界。我找不到任何隐藏它的命令。
【问题讨论】: