Skip to content
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

Passing event functions to chart building options? #84

Open
RNWCoder opened this issue Oct 31, 2022 · 2 comments
Open

Passing event functions to chart building options? #84

RNWCoder opened this issue Oct 31, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@RNWCoder
Copy link

RNWCoder commented Oct 31, 2022

I have a situation where I would like to be able to click on a bar of a chart and link to another page based on the date of its data point.

I was hoping we pass in the function through the chart building options like this:

events: { click: {function: {args: 'event, chartcontext', body: "js logic here" }}}

Has anybody solved this issue already?

@RNWCoder RNWCoder added the enhancement New feature or request label Oct 31, 2022
@shushpan
Copy link

@RNWCoder it's not super clear but possible way is described in the Readme here

@styd
Copy link
Owner

styd commented Jan 22, 2023

@RNWCoder If you use the gem version 0.1.9 or above, you should already be able to do so.
If you import apexcharts.js yourself, make sure you use the package version 3.0.0 or above.

Repository owner deleted a comment Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants