question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ClickAction Not Triggering

See original GitHub issue

I have tried setting up the ClickAction event on multiple chart types and cannot get the event to invoke. Could we please get an example on how this parameter is meant to be implemented? I assumed it would be something like the following but have had no luck.

<PlotlyChart Id="TestId" Config="config" Layout="layout" Data="data" @ref="chart" ClickAction="PieClick"/>

public void PieClick(Object x, Object y)
{
  //Do something with x & y
}

Issue Analytics

  • State:closed
  • Created 8 months ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
sean-mclcommented, Jan 18, 2023

Released.

1reaction
sean-mclcommented, Jan 17, 2023

Should be similar to the hover event. See Plotly.Blazor.Examples/Components/Hover.razor

You create a reference to the chart using @ref and then call the subscribe method. You can use the AfterRender-Method, provided by the chart component, to subscribe after the chart has been rendered.

I think the return type of the values (X and Y) is JsonElement, so you have to parse it too.

In my opinion, the event mechanism and return values should be overhauled and extended to all/more event arguments.

Read more comments on GitHub >

github_iconTop Results From Across the Web

android - Firebase click_action not working
I've got a problem with FCM, as documented by the Firebase Team: click_action: Indicates the action associated with a user click on the ......
Read more >
click_action does not work · Issue #64 · kreait/laravel-firebase
I've tried triggering this raw using my postman with my firebase key, and the click_action works fine.
Read more >
clickAction URL for notification not working with passed in ...
I have an RSS feed and I'm trying to use node red + notifications to send a link directly to my phone. The...
Read more >
Click action on layout not working - Xibo Player for Windows
Player Version R300.5 Issue I have add a click action to the entire layout in layout A to navigate to another layout (layout...
Read more >
Notify clickAction in automation - Configuration
I'm using latest HASSIO version and having problem with sending a clickable notification to my android phone through the android home assistant ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found