MPAndroidChart icon indicating copy to clipboard operation
MPAndroidChart copied to clipboard

如何实现xy轴都是虚线

Open Mrliandroid opened this issue 4 years ago • 1 comments

如何实现xy轴也是虚线显示 How to realize the XY axis is also a dotted line display

Mrliandroid avatar Feb 09 '21 02:02 Mrliandroid

/**
 * Enables the axis line to be drawn in dashed mode, e.g. like this
 * "- - - - - -". THIS ONLY WORKS IF HARDWARE-ACCELERATION IS TURNED OFF.
 * Keep in mind that hardware acceleration boosts performance.
 *
 * @param lineLength  the length of the line pieces
 * @param spaceLength the length of space in between the pieces
 * @param phase       offset, in degrees (normally, use 0)
 */使用这个方法不管用

leftAxis.enableAxisLineDashedLine(10f, 10f, 0f);

Mrliandroid avatar Feb 09 '21 03:02 Mrliandroid