Skip to content

Add chart data point click event support#1276

Merged
gvreddy04 merged 3 commits intomainfrom
features/chart-on-click
Mar 18, 2026
Merged

Add chart data point click event support#1276
gvreddy04 merged 3 commits intomainfrom
features/chart-on-click

Conversation

@gvreddy04
Copy link
Contributor

No description provided.

Introduced ChartClickEventArgs to encapsulate click event details. Added OnClick EventCallback to chart components (BarChart, LineChart, PieChart, etc.). Updated JS to wire up Chart.js onClick handler and invoke Blazor method with event data. Added demo for bar chart click event. Ensured proper disposal of DotNetObjectReference.
@gvreddy04 gvreddy04 self-assigned this Mar 18, 2026
@gvreddy04 gvreddy04 added this to the 4.0.0 milestone Mar 18, 2026
@gvreddy04
Copy link
Contributor Author

#881

#716

Added new "Click event" demo sections to the documentation pages for Doughnut, Line, Pie, Polar Area, Radar, and Scatter charts. Each demo shows how to handle chart element click events, display selected item details, and update the UI accordingly. New Razor demo components were created for each chart type, and documentation was updated to include and link to these interactive examples. This enhances guidance for handling user interactions in ChartJS-based Blazor charts.
Updated documentation for all chart components to include "Events" and "ChartClickEventArgs Properties" sections. Enhanced BlazorBootstrapChart property metadata with [AddedVersion], [DefaultValue], and [Description] attributes for Height, HeightUnit, Width, and WidthUnit. Improved remarks to clarify default values.
@gvreddy04 gvreddy04 merged commit f68ca7b into main Mar 18, 2026
1 of 3 checks passed
@gvreddy04 gvreddy04 deleted the features/chart-on-click branch March 18, 2026 03:58
This was linked to issues Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Chart display change from click and drag Chart: Click Event

1 participant