Feb 29, 2016, 7:11 AM
[FIXED] [#1272] [3.3.0] PolarChart(with Pie3DSeries) Label, LegendConfig Issue
I have trouble showing legendconfig and label in PolarChart(with Pie3DSeries)
In our project, PolarChart(with Pie3DSeries) is used in various ways.
So it is thankful if you give me some advices or examples about that.
[CODE]
In our project, PolarChart(with Pie3DSeries) is used in various ways.
So it is thankful if you give me some advices or examples about that.
[CODE]
[C#]
protected void Page_Load(object sender, EventArgs e)
{
this.BindData();
}
private void BindData(int counter = -1)
{
var data = new List<Status>
{
new Status { Type = "Delay1", Count = 3 },
new Status { Type = "Delay2", Count = 5 },
new Status { Type = "Delay3", Count = 45 },
};
this.Chart1.GetStore().DataSource = data;
this.Chart1.GetStore().DataBind();
this.Store1.DataSource = this.Data;
this.Store1.DataBind();
}
[HTML]
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<ext:ResourceManager runat="server" />
<ext:Panel runat="server" Width="750" Height="450" Layout="AbsoluteLayout">
<Items>
<ext:PolarChart
ID="Chart1"
runat="server"
StandardTheme="Category1"
X="50"
Width ="280"
Height="400">
<LegendConfig Dock="Bottom" runat="server" />
<Background Fill="white" />
<AnimationConfig Duration="500" Easing="EaseIn" />
<Store>
<ext:Store runat="server">
<Model>
<ext:Model runat="server">
<Fields>
<ext:ModelField Name="Type" />
<ext:ModelField Name="Count" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<Interactions>
<ext:RotatePie3DInteraction />
</Interactions>
<Series>
<ext:Pie3DSeries
XField="Count" YField="Type"
Donut="30"
Distortion="0.6" Colors="#BD0000,#F5EF0C,#006EBD">
<Label Field="Count" Display="Outside" Font="8px Arial" TextAlign="Center"/>
<StyleSpec>
<ext:SeriesSprite StrokeStyle="white" Opacity="1.0" />
</StyleSpec>
</ext:Pie3DSeries>
</Series>
</ext:PolarChart>
</Items>
</ext:Panel>
</div>
</form>
</body>
</html>
Last edited by wonjin; Mar 04, 2016 at 12:05 AM.