Resize bug on Resize
See original GitHub issueI’m submitting a … (check one with “x”)
[ X] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here
Current behavior When I resize my window / tab in any way, the bars within the chart (Using Vertical Bar) grow in size. This prompts the entire chart to grow in size, and no matter how many times I do it this never stops leading to an insane size.
Expected behavior They would retain the same size or shrink to fit the window. Tested with and without flex-shrink, yet this seems to have 0 effect.
Reproduction of the problem
What is the motivation / use case for changing the behavior?
Please tell us about your environment: Windows 10, https and Visual Studio Code.
-
ngx-charts version: x.x.x Latest Version
-
Angular version: 2.x.x Angular 5
-
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Chrome
-
Language: [all | TypeScript X.X | ES6/7 | ES5] Angular 5s
Issue Analytics
- State:
- Created 6 years ago
- Reactions:7
- Comments:19 (6 by maintainers)
Top GitHub Comments
this is still an issue, whenever I resize the window the bar graph just keeps growing!, and if I set a max-height in the graph, the legends below overflow the container of the graph.
@marjan-georgiev I am using bootstrap and maybe I set up incorrectly, but I have the problem too. I made an example here :
Just play with the resize or the console, and it will grow.
https://stackblitz.com/edit/swimlane-stacked-horizontal-bar-chart-ax7bpg