ant-design-blazor / ant-design-blazor/ant-design-charts-blazor

bug-UpdateConfig not work for Height

Đang mở
#43 0 bình luận 0 reaction 1 người được giao Được @TimChen44 nhận Xem trên GitHub
Ngôn ngữ chính
C#
Star
186
Fork
44
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

when page resize, update the bar height according to the actual window size, the updateConfig function will not work as expected.
example below shows update config when click button
`

IChartComponent chart1;

int height = 200;

public void UpdateConfig()
{
Console.WriteLine(heigh);
var newConfig = new BarConfig
{
Title = new AntDesign.Charts.Title
{
Visible = true,
Text = "基础条形图"
},
ForceFit = true,
XField = "销售额",
YField = "地区",
Label = new BarViewConfigLabel
{
Visible = true,
Position = "right"
},
XAxis = new ValueAxis
{
Visible = false
},
YAxis = new CatAxis
{
Visible = true,
OffsetX = 35,
OffsetY = -20
},
BarSize = 15,
Height = height
};
height += 200;
chart1.UpdateConfig(newConfig, true);
}
`

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.