Skip to content

bug(Chart): Responsive attribute only work when the window become wider, but not work when the window become narrow. #3863

@ice6

Description

@ice6

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

my code:

<div class="w-100">
<Chart ChartType="ChartType.Bar" Responsive="true" 
OnInitAsync="() => OnInitAspectRatio(true)" 
Title="SKU" Height="500px" Width="100%" /> 
</div>

when the window become wider, it works very well.
but when the window become narrow, the chart keep same size.

Expected Behavior

when the window become narrow, the chart can also change its own size to fit the parent container.

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

No response

Anything else?

No response

Metadata

Metadata

Assignees

Labels

questionQuestion that needs to be answered

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions