-
Notifications
You must be signed in to change notification settings - Fork 547
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[proposal] can we add links in pie-chart graphs in the legend section #382
Comments
Hi @sudip10028 , I think you can register the pie := charts.NewPie()
const handler = `
(params) => {
// I get the legend selected event in Console now
console.log(params);
}
`
pie.SetGlobalOptions(
charts.WithTitleOpts(opts.Title{Title: "label options"}),
charts.WithEventListeners(event.Listener{
EventName: "legendselectchanged",
Handler: opts.FuncOpts(handler),
}),
) |
I don't think this is quite what the original author asked for. SVG has concept of link blocks (see https://www.w3.org/TR/SVG11/linking.html ) and given support for those, it would be much simpler just to produce pure SVG and not JS-driven 'something' (which needs to then map the actual legend selected to url). |
Hi@fingon. |
Describe your proposal
In my usecase i want to add a custom link in every legend so that clicking on the hyperlink any one can be routed to a specific pages.
What the feature/improvement it should looks like?
.
Other information
No response
Willing to implement it?
The text was updated successfully, but these errors were encountered: