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

redraw chart when table td attribute changes #89

Open
ppswang opened this issue Feb 19, 2020 · 0 comments
Open

redraw chart when table td attribute changes #89

ppswang opened this issue Feb 19, 2020 · 0 comments

Comments

@ppswang
Copy link

ppswang commented Feb 19, 2020

Hi,

This is related to issue #84
I can re-draw charts by calling highchartTable() as explained in the issue.

However, while calling the method will update the chart with changes in the TD values, it doesn't seem to update the TH attributes.

Specifically, I am updating the TH cells by adding/removing attribute "data-graph-hidden", e.g.:

x.removeAttribute("data-graph-hidden")

x.setAttribute("data-graph-hidden", "1")

and then update the chart by calling highchartTable().

It seems that I can hide a data series by setting the attribute ("data-graph-hidden"), but once the data series is hidden, I cannot bring it back by removing the attribute from the TH element.

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

1 participant