PhilJay / MPAndroidChart

A powerful 🚀 Android chart view / graph view library, supporting line- bar- pie- radar- bubble- and candlestick charts as well as scaling, panning and animations.
Other
37.63k stars 9.02k forks source link

如何实现xy轴都是虚线 #5093

Open Mrliandroid opened 3 years ago

Mrliandroid commented 3 years ago

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

Mrliandroid commented 3 years ago
/**
 * 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);