android - Scichart can't remove annotation -


when im trying remove annotation, i’m receiving error:

java.lang.nullpointerexception: attempt invoke interface method ‘void com.scichart.charting.visuals.annotations.iannotationplacementstrategy.drawadorner(android.graphics.canvas)’ on null object reference @ com.scichart.charting.visuals.annotations.annotationbase.ondrawadorner(sourcefile:889) @ com.scichart.charting.visuals.annotations.adornerlayer.ondraw(sourcefile:144) @ android.view.view.draw(view.java:17071) @ android.view.view.updatedisplaylistifdirty(view.java:16053)

i’ve tried many ways, like:

updatesuspender.using(pricechart, new runnable() {     @override     public void run() {         pricechart.getannotations().clear();     } }); 

and

updatesuspender.using(pricechart, new runnable() {     @override     public void run() {         pricechart.getannotations().remove(myannotation);     } }); 

but can't remove it.

that's weird. there's scichart android tutorial on annotations here. uses 'chart.getannotations().remove(0)'

the full source code tutorial can found @ scichart.android.examples github repository.

does work you?


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -