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

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -