ant-design-blazor / ant-design-blazor/ant-design-charts-blazor
bug-UpdateConfig not work for Height
- 主要语言
- 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 还没有评估数据。