-
Notifications
You must be signed in to change notification settings - Fork 80
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
Charts: Resize issues when used in a widget #8410
Comments
Hi @ericangeles, Could you please provide any environment to test it. because we are also facing the same issue in widget |
@spendker will also release a beta today check https://www.npmjs.com/package/ids-enterprise for latest beta. |
Hi @ericangeles,@tmcconechy thanks for your quick response a request from my side is in widget we are facing the resize issue when the donut chart legends are in bottom position. So can you please check from your side by putting the legends in the bottom or please let me know how can I check from my side in the given URL Thanks in advance |
@spendker if you pull main and then do Not that simple but like |
Hi @tmcconechy, I checked this solution in 4.94 but the issue is not resolved yet. I am putting the gif file. |
@spendker what does "for the right" mean? Noting that we also have this issue reported: #8755 Should we reopen and recheck or look against that issue? cc @tjamesallen15 any thoughts? |
@tmcconechy right means it indicates the legendplacement. |
@tjamesallen15 can you recheck? |
@tmcconechy, I think the challenge here on our end is that we can't reproduce it on our examples. If this is critical for you, @spendker, find some time to connect with @tjamesallen15. Also, if you have an environment that we can check, that would be helpful. |
Maybe #8755 is more clear? If we can fix that it seems the same? |
I think it's more related on this one. |
Describe the bug
Some charts do not resize/refresh themselves correctly when used inside a widget on a homepage. We've seen various issues related to this, but now I took some time to reproduce it in a clear way.
Typical scenario
A chart is quite commonly used in a double width widget (or wider). When such a widget shrinks its column width, some charts do not update correctly.
Seems to work fine: Bar, line
Resize issues: Column, donut/pie
I've attached GIFs of column, bar, line & donut examples.
To Reproduce
For the charts that are incorrect, it seems that they size themselves based on the previous parent width. I.e., when widget shrinks to single column, charts size based on double column. When widget sizes back to double column, the charts size themselves based on a single widget width.
Expected behavior
All charts reacting correctly to parent container width change, in this case widgets on a homepage.
Version
GIFs
![column-on-resize](https://private-user-images.githubusercontent.com/1101770/301453948-687f5bfc-61d2-4b76-9ca4-3a388f623920.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5c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WYxZDBjNmRiNThmNTAzY2UzZTdiNSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.wbVSceLyzUkdT2k0fywyK69Z_-ayNWyWe105JibFLgg)
Bar (works OK):
![bar-on-resize](https://private-user-images.githubusercontent.com/1101770/301454182-1a013f44-3b5e-4b14-aba0-5b01318d26c8.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI0NzQ0ODQsIm5iZiI6MTcyMjQ3NDE4NCwicGF0aCI6Ii8xMTAxNzcwLzMwMTQ1NDE4Mi0xYTAxM2Y0NC0zYjVlLTRiMTQtYWJhMC01YjAxMzE4ZDI2YzguZ2lmP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgwMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MDFUMDEwMzA0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YTdiOWI4OTdiZGMwZjRlM2VhZjBmOWRkYzcxZjI2YjhmOTI1ZTJkZDNjNjhiODcyMDQ3OTgyZDJkNTdmNjM2NCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.Y98xYXUT1ifv4vBh4hU7lgtLoHLMmwTXho9oJOW0-Os)
Platform
Additional context
Would be great to extend this sample to cover more types of charts in double+ width widgets
https://main-enterprise.demo.design.infor.com/components/homepage/test-linechart-x-axis.html
The text was updated successfully, but these errors were encountered: