android - Show/hide point label Androidplot -
when chart gets lot of data point labels overlap each other , result want give user option turn them off clicking button can't find in documentation on how this. below how setup point labels when chart created.
barformatter series1format = new barformatter(color.rgb(51, 181, 229), color.transparent);' pointlabelformatter plf = new pointlabelformatter(); plf.gettextpaint().settextsize(18); plf.gettextpaint().setcolor(color.black); series1format.setpointlabelformatter(plf);
have tried setting pointlabelformatter null inside barformatter instance?
series1format.setpointlabelformatter(null); then turn labels on add original method:
series1format.setpointlabelformatter(plf);
Comments
Post a Comment