pepstock-org/Charba

Extension DataLabels

ak80 opened this issue · 2 comments

ak80 commented

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!

@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

@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!