Mpandroidchart: Hide drawn line in LineChart

Created on 13 Jan 2018  路  3Comments  路  Source: PhilJay/MPAndroidChart

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

Most helpful comment

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);

All 3 comments

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

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);

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DarkHelmet67 picture DarkHelmet67  路  3Comments

mrZizik picture mrZizik  路  3Comments

rohitkumarbhagat picture rohitkumarbhagat  路  3Comments

andreyfel picture andreyfel  路  3Comments

SutharRohit picture SutharRohit  路  3Comments