I need a click event on a chart element such as a specific bar in a bar chart or a slice in a pie chart
I'm using version 1.1 of the UI for Blazor and have leveraged several different types of charts. I now need to add click events on different parts of the chart so I can navigate to a drilldown page. How can I accomplish this?
Posted on:16 Jun 2020 09:26
Yes, this feature is still planned to be live with our 2.15.0 release, which will, hopefully, be live by the end of this month.
Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic. Our thoughts here at Progress are with those affected by the outbreak.
Posted on:15 Jun 2020 22:15
Hey there, Is this still on track for 2.15.0? And is there an ETA for that release?
This is probably one of the first enhancements we will make on the charts when we get to them. I am not in a position to provide an ETA at this stage, though, and we put only large components on the public roadmap. My best advice is to click the Follow button to get notifications for its implementation status. Doing this at the moment is not going to be possible, I think, because we will need to carry quite a bit of information in order for it to be available. Then, discerning one SVG element from another is going to be next to impossible, we would need to attach handlers to them as they get generated so the code knows how to associate the events. It is not a trivial task in Blazor, and there is no easy workaround I can offer, especially after the chart has rendered (I am not even considering re-rendering triggered by changes from the C# code).
UI for Blazor
Valid Development Factory
Posted on:23 Sep 2019 11:49
Is there any update on this? Is this feature on the near-future roadmap or any ETA? We're in desperate need of this feature and are looking into JS interop to work around this for now. The only question we now have is how are we going to indentify the clicked element (point, bar, slice, ...)? We can get the element but we need the ID (of the underlying model) of the clicked element for example.
Posted on:23 Jul 2019 05:21
It is more about priorities at this point. The click events are not usually mission critical for data visualization, while an advanced grid is. There aren't serious blockers in implementing click events in the charts, it's just some interop code + exposing the C# events from it (well, of course, there is some plumbing we have to do behind the scenes, but it is doable).
Progress Telerik UI for Blazor
Posted on:22 Jul 2019 19:07
We here rely on chart events as well and would really love to see that level of support in Charts for Blazor. Is there a real technical reason for not exposing events in Blazor Charts or is this simply a work prioritization effort?
At the moment, the chart does not expose events and since this is the first request we receive for that, we are starting to measure its demand by the community through this page, so we can prioritize better.
I have already added your vote, and you can Follow the page to get notifications of status changes and comments. I also took the liberty of changing the post title a little to make it more meaningful in this context.
Progress Telerik UI for Blazor