ant-design-blazor / ant-design-blazor/ant-design-charts-blazor
TypeError: Cannot read properties of undefined (reading 'length')
- Lingua principale
- C#
- Stelle
- 186
- Fork
- 44
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
ant-design-charts-blazor.js:46
TypeError: Cannot read properties of undefined (reading 'length')
第一个打开页面正常,关掉浏览器再打开就报上面的错误。
代码
#region Example 1
readonly object[] data1 =
{
new
{
type = "Error",
value = 27
},
new
{
type = "Info",
value = 25
},
new
{
type = "Warm",
value = 18
}
};
readonly PieConfig config1 = new PieConfig
{
Radius = 0.8,
AngleField = "value",
ColorField = "type",
Label = new PieLabelConfig
{
Visible = true,
Type = "inner"
},
Color = new string[] { "#ff4d4f", "#1890ff", "#faad14" },
Width=260,
Height=260
};
#endregion Example 1
LineConfig config2 = new LineConfig
{
Padding = "auto",
XField = "year",
YField = "value",
Height=180
// XAxis = new ValueCatTimeAxis
// {
// Type = "dateTime",
// TickCount = 5
// }
};
object[] data2 =
{
new {year = "1991", value = 3},
new {year = "1992", value = 4},
new {year = "1993", value = 3.5},
new {year = "1994", value = 5},
new {year = "1995", value = 4.9},
new {year = "1996", value = 6},
new {year = "1997", value = 7},
new {year = "1998", value = 9},
new {year = "1999", value = 13}
};
}
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.