MPAndroidChart icon indicating copy to clipboard operation
MPAndroidChart copied to clipboard

Hide drawn line in LineChart

Open omensight opened this issue 8 years ago • 3 comments

Hi PhilJay i have this problem, when i try to hide the line setting the color of the same to transparent originalDataSet.setColor(Color.TRANSPARENT); the label color too disappear, and i don't want it, i want to hide only the drawn line, thank you in advance. Here i leave the screenshots. screenshot_20180113-000221 screenshot_20180113-000310

omensight avatar Jan 13 '18 04:01 omensight

my solved and i hope you: dataSet.setDrawCircleHole(true); dataSet.setColor(getColor(R.color.transparent)); dataSet.setCircleColor(colorRes);

haiho avatar Jul 12 '18 07:07 haiho

For anyone else looking for a solution to this, you can use the dashed line feature with line length set to 0 to draw only the dots: dataSet.enableDashedLine(0, 1, 0);

Lepmim avatar Aug 14 '19 19:08 Lepmim

https://stackoverflow.com/questions/61002382/how-to-not-draw-negative-value-on-a-linechart-mpandroidchart Can you help me on this post, please

duydungtran0000 avatar Apr 03 '20 13:04 duydungtran0000