ant-design-blazor / ant-design-blazor/ant-design-charts-blazor
bug-UpdateConfig not work for Height
- Langage dominant
- C#
- Étoiles
- 186
- Forks
- 44
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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);
}
`
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.