Package | Description |
---|---|
org.pepstock.charba.client.impl.plugins |
Contains some plugins implementations, available out-of-the box.
|
org.pepstock.charba.client.plugins |
Contains all classes to manage the plugin implementations.
|
Modifier and Type | Class and Description |
---|---|
class |
ChartBackgroundColor
A plugin implementation to set the background color, gradient or pattern of chart.
If added to defaults, without any configuration, the chart will have a ChartBackgroundColor.DEFAULT_BACKGROUND_COLOR background color. |
class |
ChartPointer
This plugin is changing the cursor when mouse over on dataset, title on canvas if a dataset selection, title handler have been defined.
|
class |
ColorSchemes
Default plugin implementation to use color schemes instead the single colors for border and background colors of chart.
It enables to pick the color combination for charts from the predefined or custom color schemes. |
class |
DatasetsItemsSelector
Enables the datasets items selection directly in the the canvas.
It works only for line and bar chart instances and if ZoomPlugin is disable. It will add mouser listeners to canvas. Tooltips will be disable to avoid events conflicts. Overrides also the events which can be caught (only click and touchstart). It activates also the legend click handler to avoid that all datasets will be hidden. |
class |
HtmlLegend
This plugin implements a HTML legend in order to give more flexibility to who needs to customize the legend.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractPlugin
Implements a plugin interface to help who will create a plugin do not create all methods.
The only method not implemented is getId which must implemented.All onBefore* cancelable methods return true . |
Modifier and Type | Method and Description |
---|---|
void |
Plugins.add(Plugin plugin)
Adds a new plugin to the chart.
If another plugin instance with the same id has been already loaded, it will remove, storing the new one. If the chart is already initialized, to get this update the chart must be drawn again. |
boolean |
GlobalPlugins.register(Plugin plugin)
Registers a plugin as global, to apply to all charts.
|