我在 Android 应用中使用 GraphView 库来绘制图表,目前我对这个库非常满意。我将它用于固定框架的实时场景,并注意到 x 轴和 y 轴网格线比其他单位网格线更粗。有没有办法让它们与其他线条相似?
GraphView graph = (GraphView) cardView.findViewById(R.id.graph);
// Set manual X bounds
graph.getViewport().setXAxisBoundsManual(true);
graph.getViewport().setMinX(0);
graph.getViewport().setMaxX(40);
// Set manual Y bounds
graph.getViewport().setYAxisBoundsManual(true);
graph.getViewport().setMinY(-40);
graph.getViewport().setMaxY(60);
// Draw a border between between labels and viewport
graph.getViewport().setDrawBorder(false);
graph.getGridLabelRenderer().setHumanRounding(false);
graph.getGridLabelRenderer().setNumHorizontalLabels(11);
graph.getGridLabelRenderer().setNumVerticalLabels(6);
基本上我想要更改这个: 为这个: 提前感谢!