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

Ability to export a graph #374

Open
SadikMoazzem opened this issue Oct 3, 2022 · 6 comments
Open

Ability to export a graph #374

SadikMoazzem opened this issue Oct 3, 2022 · 6 comments

Comments

@SadikMoazzem
Copy link

Feature Request

Description

Be able to use the useChart Hook to access other methods on the Chart class

@anajavi Is there any reason they haven't been added in already, i see there is a few added in without types currently.

@SadikMoazzem
Copy link
Author

It can be added in here, but I am not able to create a branch to open a PR currently!
packages/react-jsx-highcharts/src/components/BaseChart/createProvidedChart.js

image

@farridav
Copy link

farridav commented Oct 4, 2022

Given its a one line change, perhaps you can make a pull request for this?

  • Fork this repo
  • Make your changes
  • Create a pull request against this repo

@anajavi
Copy link
Collaborator

anajavi commented Oct 4, 2022

The chart is already accessible with useChart:

const c = useChart();
const chart = c.object;

@SadikMoazzem
Copy link
Author

I am trying to access the "exportChart" method, which doesn't exist on the chart obj

image

Looking to add it to the exposed interface in "BaseChart/createProvidedChart.js" or wherever it should fit

@anajavi
Copy link
Collaborator

anajavi commented Oct 10, 2022

I am trying to access the "exportChart" method, which doesn't exist on the chart obj

image

There probably isn't typescript definition for exportChart as it is added via highcharts module.

Did you try to run your code ignoring typescript warnings for exportChart?

@ozadari5
Copy link

#375
Hey, why aren't you merging this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants