Hello @hjk1130!
Please provide full example so we can run it in our side.
I've ported the WebForms example to a simple view-only page in MVC and it works fine:
@{
Layout = null;
var X = Html.X();
var n = 5;
var floor = 20;
List<object> data = new List<object>(n);
Random random = new Random();
double p = (random.NextDouble() * 11) + 1;
for (int i = 0; i < n; i++)
{
data.Add(new
{
id = i,
name = (char)('A' + i),
g0 = Math.Floor(Math.Max(random.NextDouble() * 100, floor)),
g1 = Math.Floor(Math.Max(random.NextDouble() * 100, floor)),
g2 = Math.Floor(Math.Max(random.NextDouble() * 100, floor)),
g3 = Math.Floor(Math.Max(random.NextDouble() * 100, floor)),
g4 = Math.Floor(Math.Max(random.NextDouble() * 100, floor)),
g5 = Math.Floor(Math.Max(random.NextDouble() * 100, floor)),
g6 = Math.Floor(Math.Max(random.NextDouble() * 100, floor)),
});
}
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>Index</title>
</head>
<body>
<div>
@Html.X().ResourceManager().ScriptMode(Ext.Net.Mobile.ScriptMode.Debug).SourceFormatting(true)
@(
X.PolarChart()
.InnerPadding(10)
.FullScreen(true)
.Store(
X.Store().ID("StoreZic")
.Data(data)
.Fields(
new ModelField("id"),
new ModelField("g0"),
new ModelField("g1"),
new ModelField("g2"),
new ModelField("g3"),
new ModelField("g4"),
new ModelField("g5"),
new ModelField("g6"),
new ModelField("name")
)
)
.Interactions(
X.ItemHighlightInteraction(),
X.RotateInteraction()
)
.LegendConfig(X.ChartLegend().Docked(Dock.Right))
.Series(X.PieSeries()
.AngleField("g1").Donut(30)
.Label(
X.ChartLabel()
.Field("name")
.FontSize("14")
.Display(SeriesLabelDisplay.Rotate)
)
.HighlightDefaults(X.Sprite().Margin(20))
)
)
</div>
</body>
</html>
So, there's something with your model. Additionally, please provide a sample code without layout, much like the one I just provided above. One possibility is a problem with the
getzicdata action, it probably is not returning data the way it was meant to. Well, of course, it is possible that it returns correctly and Ext.NET is not handling it correctly. But only way to find out is being able to run the example.