Package | Description |
---|---|
org.pepstock.charba.client |
Main package with all charts implementation, global classes and common interfaces.
|
org.pepstock.charba.client.events |
Contains all events to interact with chart instance.
|
org.pepstock.charba.client.gwt.widgets |
Contains all charts classes wrapped as GWT widget in order to enable to use inside to GWT UIBinder.
|
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 |
---|---|
DatasetReference |
AbstractChart.getElementAtEvent(BaseNativeEvent 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. |
DatasetReference |
IsChart.getElementAtEvent(BaseNativeEvent 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<DatasetReference> |
AbstractChart.getDatasetAtEvent(BaseNativeEvent event)
Looks for the data sets that matches the event and returns the data set items references as a list.
|
List<DatasetReference> |
IsChart.getDatasetAtEvent(BaseNativeEvent event)
Looks for the dataset that matches the event.
|
List<DatasetReference> |
AbstractChart.getElementsAtEvent(BaseNativeEvent 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<DatasetReference> |
IsChart.getElementsAtEvent(BaseNativeEvent 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 | Method and Description |
---|---|
DatasetReference |
DatasetSelectionEvent.getItem()
Returns the item with dataset metadata related to the click
|
Modifier and Type | Method and Description |
---|---|
List<DatasetReference> |
IsChartEvent.getItems()
Returns a list of items with dataset references related to the event.
|
Constructor and Description |
---|
DatasetSelectionEvent(BaseNativeEvent nativeEvent,
DatasetReference item)
Creates the event with dataset reference item related to the click
|
DatasetSelectionEvent(BaseNativeEvent nativeEvent,
IsChart chart,
DatasetReference item)
Creates the event with dataset reference item related to the click and the chart instance
|
Constructor and Description |
---|
ChartClickEvent(ChartEventContext eventContext,
List<DatasetReference> items)
Creates the event with a list of items with dataset references related to the click
|
ChartHoverEvent(ChartEventContext eventContext,
List<DatasetReference> items)
Creates the event with a list of items with dataset references related to the hover
|
Modifier and Type | Method and Description |
---|---|
DatasetReference |
AbstractChartWidget.getElementAtEvent(BaseNativeEvent event) |
Modifier and Type | Method and Description |
---|---|
List<DatasetReference> |
AbstractChartWidget.getDatasetAtEvent(BaseNativeEvent event) |
List<DatasetReference> |
AbstractChartWidget.getElementsAtEvent(BaseNativeEvent event) |
Modifier and Type | Method and Description |
---|---|
DatasetReference |
DatasetReference.DatasetReferenceItemFactory.create(NativeObject nativeObject) |
Modifier and Type | Method and Description |
---|---|
Point |
TooltipPositioner.computePosition(IsChart chart,
List<DatasetReference> items,
Point eventPoint)
Applies own logic to returns the point where the tooltip must be showed.
|