Package com.jbstrap.ui.components.charts
Interface ClickableChartData<T extends BaseChart<?>>
- Type Parameters:
T
- Chart type
- All Known Implementing Classes:
AreaChart
,BarChart
,BubbleChart
,BulletChart
,DonutChart
,DotChart
,FunnelChart
,GaugeChart
,HorizontalBarChart
,HorizontalStackedBarChart
,LineChart
,PieChart
,PopulationPyramidChart
,StackedAreaChart
,StackedBarChart
public interface ClickableChartData<T extends BaseChart<?>>
Charts that implement this interface marker click events. If the user clicks on a chart marker,
it activates a click event on the Java side. You can then perform several operations or display detailed information to
the user.
Click events are handled by every chart.
- Since:
- 4.0
- Author:
- JBStrap
-
Method Summary
Modifier and TypeMethodDescriptiondefault T
addClickHandler
(ChartClickEventHandler handler) Adds a click event to the chart.
-
Method Details
-
addClickHandler
Adds a click event to the chart.
The click event is triggered if the user clicks on any marker on the chart.
- Parameters:
handler
- Click event handler- Returns:
- The chart
- See Also:
-