pepstock-org / Charba

J2CL and GWT Charts library based on CHART.JS
https://pepstock-org.github.io/Charba-Wiki/docs
Apache License 2.0
62 stars 6 forks source link

DataSelector not working #39

Closed SandraK82 closed 5 years ago

SandraK82 commented 5 years ago

The Charba-Showcase featurs under "Time series Charts"->"Zooming" a nice example of the DataSelector. However i'm completly unable to implement it in my own project. It just does not work, no interaction on the minigraph. To check what might be wrong, I checked the showcase out, put the Charba-2.5.jar into the project and it does not work, too.

stockiNail commented 5 years ago

@SandraK82 let me ask you if the bug is that you are not able to select the area into the chart.

If yes, can you check the GWT compiler options you are using?

stockiNail commented 5 years ago

@SandraK82 maybe this is not the root cause of your issue. I have tested the Showcase and if you don't use -generateJsInteropExports as GWT compiler options, you have what I described above: you are not able to select the area.

Have a look to Readme and Wiki:

Charba version 1.x is based on JSNI method to integrate java script objects. Charba version 2.x is based on JSINTEROP method to integrate java script objects. JSNI will be removed with GWT 3. JsInterop is one of the core features of GWT 2.8. Pay attention that GWT compiler (you are using for your project) requires -generateJsInteropExports to be passed.

SandraK82 commented 5 years ago

ah great, this solved it! -> -generateJsInteropExports Many thank to you!