Package org.pepstock.charba.client.impl.callbacks
Contains some callbacks implementations, available out-of-the box.
- Author:
- Andrea "Stock" Stocchero
-
Class Summary Class Description AtLeastOneDatasetHandler Implementation of legend click handler which disable the capability to hide the last visible dataset.
In this way, always a dataset is showed.DataLabelsPointerHandler DataLabelsPlugin event callback to change the cursor type when the labels are clickable.DataLabelsSelectionHandler DataLabelsPlugin event callbacks to invoke data set selection handlers if there were defined.
This can substitute the event handling at chart level.NoSelectedDatasetTicksCallback Implementation of tick callback in order to avoid that when all datasets are hidden, the ticks will get a wrong double precision.Percentage Utility to calculate the percentage of the value based on the datasets of chart.PercentageCallback Formatter implementation for DataLabelsPlugin plugin in order to provide the percentage of the value.
Setting this object to formatter callback of DataLabelsPlugin options, it will return the percentage for each data index per dataset.