ChartClickEventHandler
Namespace: Wisej.Web.Ext.ChartJS4
Assembly: Wisej.Web.Ext.ChartJS4 (4.1.0.0)
Represents the method that will handle the ChartClick event.
- C#
- VB.NET
public delegate void ChartClickEventHandler(Object sender, ChartClickEventArgs e)
Public Delegate Sub ChartClickEventHandler(ByVal sender As [Object], ByVal e As ChartClickEventArgs)
Example:
chart.ChartClick += new ChartClickEventHandler(Chart_ChartClick);
private void Chart_ChartClick(object sender, ChartClickEventArgs e)
{
AlertBox.Show($"Clicked point {e.Data.data[0].pointIndex}");
}
Parameters
| Name | Type | Description |
|---|---|---|
| sender | Object | The ChartJS4 control that raised the event. |
| e | ChartClickEventArgs | A ChartClickEventArgs that contains the event data. |
Fired By
| Name | Description |
|---|---|
| ChartJS4.ChartClick | Fired when the user clicks a data point on the chart. |