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

bug-UpdateConfig not work for Height

未关闭
#43 0 条评论 0 个 reaction 已指派 1 人 已被 @TimChen44 认领 在 GitHub 查看
主要语言
C#
星标
186
派生
44
PR 合并指标
30 天内没有已合并 PR

描述

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);
}
`

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。