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

resize the nv3d chart to fit in the window #162

Closed
wants to merge 1 commit into from
Closed

Conversation

askeys
Copy link

@askeys askeys commented Mar 3, 2016

@mistercrunch @williaster adjust the size of the nvd3 chart based on the widow size.

@williaster
Copy link
Contributor

@mistercrunch why don't the charts properly resize already? I'm okay with this as a quick fix but this isn't the ultimate solution because all of the vis's are currently supposed to define a resize function, so it's not getting bound to the window resize event properly.

also in looking at the Slice objects resize method (the one that's not being bound to window resize events now), it calls a given vis's render AND resize methods which is not good. the vis should handle any re-rendering that needs to happen. maybe I can make a sweep for this?

@mistercrunch
Copy link
Member

@williaster, I haven't tackled window resizing yet, I did define that the resize method should be in the interface and use it for widget resizing in dashboards, but haven't handled window resizing.

But yeah, we should close this PR and tackle it for each view (as opposed to each viz). Should be simple enough.

@williaster
Copy link
Contributor

K sounds good. @askeys 👍 though this will fail our new linting with all of the extra spaces you have.

@askeys
Copy link
Author

askeys commented Mar 4, 2016

@williaster, it sounds like @mistercrunch wants to close this rather than merge.

@askeys
Copy link
Author

askeys commented Mar 4, 2016

I can try to solve this correctly this weekend, but maybe it would be better to discuss in person with @mistercrunch.

@williaster
Copy link
Contributor

yeah so maybe close this one since max fixed it with the other PR. the timeout he has on that branch is also better.

@askeys askeys closed this Mar 4, 2016
@mistercrunch mistercrunch deleted the nvd3_width_resize branch April 1, 2016 18:51
hughhhh pushed a commit to lyft/incubator-superset that referenced this pull request Apr 1, 2018
Author: none

lyft/ops_DEPRECATED@1b2095a...aceb94d
TESTS WERE BYPASSED
REVIEWS WERE BYPASSED
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 17, 2021
)

* feat: file skeleton necessary for icicle chart visualization

* feat: name changes and restructure components

update package to account for clearer name and reorganized implementation for planned features

* feat: fix lint errors

* docs: add license file headers, adjust naming and links

Add Apache license file headers to all files, adjust naming of the viz in the package.json and
update the README to inform that Storybook link is unavailable but will be in the near future
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 24, 2021
)

* feat: file skeleton necessary for icicle chart visualization

* feat: name changes and restructure components

update package to account for clearer name and reorganized implementation for planned features

* feat: fix lint errors

* docs: add license file headers, adjust naming and links

Add Apache license file headers to all files, adjust naming of the viz in the package.json and
update the README to inform that Storybook link is unavailable but will be in the near future
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 25, 2021
)

* feat: file skeleton necessary for icicle chart visualization

* feat: name changes and restructure components

update package to account for clearer name and reorganized implementation for planned features

* feat: fix lint errors

* docs: add license file headers, adjust naming and links

Add Apache license file headers to all files, adjust naming of the viz in the package.json and
update the README to inform that Storybook link is unavailable but will be in the near future
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 26, 2021
)

* feat: file skeleton necessary for icicle chart visualization

* feat: name changes and restructure components

update package to account for clearer name and reorganized implementation for planned features

* feat: fix lint errors

* docs: add license file headers, adjust naming and links

Add Apache license file headers to all files, adjust naming of the viz in the package.json and
update the README to inform that Storybook link is unavailable but will be in the near future
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

Successfully merging this pull request may close these issues.

None yet

3 participants