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

Extension DataLabels #31

Closed ak80 closed 5 years ago

ak80 commented 5 years ago

Hello,

I would like to use the DataLabels extension on a doughnut chart, as seen in the showcase. I copied the code from DataLabelsDoughnutView.java but get no data labels.

Do I need to load/configure the plugin somehow?

I am using charba 2.1

Thank you for any pointers in the right direction!

stockiNail commented 5 years ago

@ak80 I have the feeling you didn't enable the plugin because the showcase it's into DemoView class (entry point). See Wiki.

Add to your entry point the following:

DataLabelsPlugin.enable();

Let me know if works

ak80 commented 5 years ago

@stockiNail yeah... I expected something like this, I even looked through the showcase code but I must have missed the enable().

The wiki is great!

Thank you!