You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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}
};
}
The text was updated successfully, but these errors were encountered:
ant-design-charts-blazor.js:46
TypeError: Cannot read properties of undefined (reading 'length')
第一个打开页面正常,关掉浏览器再打开就报上面的错误。
代码
}
The text was updated successfully, but these errors were encountered: