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

Please expose way to manually call reflow #582

Closed
nawlbergs opened this issue Apr 16, 2017 · 3 comments
Closed

Please expose way to manually call reflow #582

nawlbergs opened this issue Apr 16, 2017 · 3 comments

Comments

@nawlbergs
Copy link

Link to jsfiddle showing the issue.

The issue with highcharts inside a table is discussed thoroughly here... and a css hack is described.. but it is still not always fixing the issue in my project:
highcharts/highcharts#1157

I have a table that is displaying columns of data with a chart at the top.. when 1 column of data is drawn, everything seems fine.. but when the user adds a second column.. the 1st column does not resize.

I can NOT use a table for this particular page.. but i imagine there are a lot of cases where a chart inside a table will be needed.

Expected Behaviour

Chart inside a table should resize itself correctly.

Current Behaviour

Chart will sometimes not resize correctly inside a table.

Your Environment

  • Version of highcharts-ng used: latest ("^1.0.0")
  • Browser Name and version: latest chrome
  • Operating System and version (desktop or mobile): desktop windows 10 and osx at work.
  • Link to your project: its software behind a login sorry.
@pablojim
Copy link
Owner

you can call it using config.getChartObj().reflow() let me know if this doesn't work for you.

@dgreene1
Copy link

But how do I get a reference to config to use getChartObject() when config is one way bound. From what I can see, my config never gets modified due to the one way binding. From the angular documentation:

"One-way binding is useful if you do not plan to propagate changes to your isolated scope bindings back to the parent. However, it does not make this completely impossible."

So by that description, I can not use config.getChartObj because my config is not modified.

@mathiasconradt
Copy link

@dgreene1 I also had issues with resizing (not with tables though) when I upgraded from Highcharts 4.x to 5.x (and highcharts-ng accordingly) but solved it with the css fix as mentioned here: #550 (comment)
Not sure if you already looked at this css fix as well, cause I think it's a different one than the one you mentioned in your description. Maybe it helps.

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