highcharts-android
highcharts-android copied to clipboard
OMG!As a Java user, I'm not used to it.
It's difficult to use. eg: HIChart chart = new HIChart(); chart.setType("line"); I think it should be: HIChart chart = new HIChart(); chart.setType(HIChart.TYPE_LINE); eg: yaxis2.labels.format = "{value:.,0f}"; I think it should be: yaxis2.labels.setFormat(new Callback{ public String call(value){ return “”; } }) I still see a lot of JS shadow.
And the official example is version 6.0, not version 7.0.
Hi @houyuehai ! Yes, we are aware of that. The wrapper is constantly evolving and approaches you pointed are currently in works. When it comes to examples - they are ready for version 7.0. We are waiting for the webmasters to put them on the site. Stay tuned!
Speaking of labels.format
there are two ways to establish them. We kept both as the core library allows it too. One, which you already pointed out and second which is called labels.formatter
. This one takes the HIFunction
object as parameter which let you do native callbacks as you want.
Wow, today's official example has been updated to version 7.0. It's great. I am studying.
It seems to be a duplicate of #46.