Package | Description |
---|---|
org.pepstock.charba.client |
Main package with all charts implementation, global classes and common interfaces.
|
org.pepstock.charba.client.controllers |
Contains all classes to manage the implementations of controllers.
|
org.pepstock.charba.client.events |
Contains all events to interact with chart instance.
|
org.pepstock.charba.client.items |
Contains all elements generated by CHART.JS, which are mapping java script objects, to use at runtime in plugins, events or
controllers.
|
org.pepstock.charba.client.positioner |
Contains all classes to implement a custom tooltip positioner for CHART.JS.
|
Modifier and Type | Method and Description |
---|---|
DatasetItem |
IsChart.getElementAtEvent(ChartNativeEvent event)
Calling on your chart instance passing an argument of an event, will return the single element at the event position.
If there are multiple items within range, only the first is returned. |
DatasetItem |
AbstractChart.getElementAtEvent(ChartNativeEvent event)
Calling on your chart instance passing an argument of an event, will return the single element at the event position.
If there are multiple items within range, only the first is returned. |
Modifier and Type | Method and Description |
---|---|
List<DatasetItem> |
IsChart.getElementsAtEvent(ChartNativeEvent event)
Looks for the element under the event point, then returns all elements at the same data index.
Calling it on your chart instance passing an argument of an event, will return the point elements that are at that the same position of that event. |
List<DatasetItem> |
AbstractChart.getElementsAtEvent(ChartNativeEvent event)
Looks for the element under the event point, then returns all elements at the same data index.
Calling it on your chart instance passing an argument of an event, will return the point elements that are at that the same position of that event. |
Modifier and Type | Class and Description |
---|---|
class |
StyleElement
Element used by controller by
removeHoverStyle and setHoverStyle methods. |
Modifier and Type | Method and Description |
---|---|
DatasetItem |
DatasetSelectionEvent.getItem()
Returns the item with dataset metadata related to the click
|
Modifier and Type | Method and Description |
---|---|
List<DatasetItem> |
ChartHoverEvent.getItems()
Returns a list of items with dataset metadata related to the hover
|
List<DatasetItem> |
ChartClickEvent.getItems()
Returns a list of items with dataset metadata related to the click
|
Constructor and Description |
---|
DatasetSelectionEvent(NativeEvent nativeEvent,
DatasetItem item)
Creates the event with dataset metadata item related to the click
|
DatasetSelectionEvent(NativeEvent nativeEvent,
IsChart chart,
DatasetItem item)
Creates the event with dataset metadata item related to the click and the chart instance
|
Constructor and Description |
---|
ChartClickEvent(NativeEvent nativeEvent,
List<DatasetItem> items)
Creates the event with a list of items with dataset metadata related to the click
|
ChartHoverEvent(NativeEvent nativeEvent,
List<DatasetItem> items)
Creates the event with a list of items with dataset metadata related to the hover
|
Modifier and Type | Method and Description |
---|---|
DatasetItem |
DatasetItem.DatasetItemFactory.create(NativeObject nativeObject) |
Modifier and Type | Method and Description |
---|---|
List<DatasetItem> |
DatasetMetaItem.getDatasets()
Returns a list of dataset metadata items.
|
Modifier and Type | Method and Description |
---|---|
Point |
TooltipPositioner.computePosition(IsChart chart,
List<DatasetItem> items,
Point eventPoint)
Applies own logic to returns the point where the tooltip must be showed.
|