Aug 28, 2012, 9:55 AM
[CLOSED] chart display problem
Hi,
I create a panel to show my chart. I extract the data from codebehind and I add at the Store object. When I run my application I don't see nothing into the panel not even as error.
Thank you so much for your support
I create a panel to show my chart. I extract the data from codebehind and I add at the Store object. When I run my application I don't see nothing into the panel not even as error.
<ext:Panel runat="server" Height="200" Layout="FitLayout" MarginSpec="0 0 3 0">
<Items>
<ext:Chart
ID="yieldChart"
runat="server"
Flex="1"
Shadow="true"
Animate="true">
<Store>
<ext:Store
ID="yieldStore"
runat="server"
AutoDataBind="false">
<Model>
<ext:Model runat="server">
<Fields>
<ext:ModelField Name="yield" Mapping="Yield" />
<ext:ModelField Name="period" Mapping="Period" />
<ext:ModelField Name="pnFirstPass" Mapping="PnFirstPass" Type="Int" />
<ext:ModelField Name="pnFirstFail" Mapping="PnFirstFail" Type="Int" />
<ext:ModelField Name="pnTotalPass" Mapping="PnTotalPass" Type="Int" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<Axes>
<ext:NumericAxis Position="Left" Fields="yield" Minimum="0" Hidden="true" />
<ext:CategoryAxis Position="Bottom" Fields="period">
<Label Font="9px Arial">
<Rotate Degrees="270" />
<Renderer Handler="return Ext.String.ellipsis(value, 15, false);" />
</Label>
</ext:CategoryAxis>
</Axes>
<Series>
<ext:ColumnSeries
Axis="Left"
Highlight="true"
XField="Name"
YField="yield">
<Style Fill="#456d9f" />
<HighlightConfig Fill="#a2b5ca" />
<Label
Contrast="true"
Display="InsideEnd"
Field="yield"
Color="#000"
Orientation="Vertical"
TextAnchor="middle"
/>
</ext:ColumnSeries>
</Series>
</ext:Chart>
</Items>
</ext:Panel>
In CodebehindyieldStore.DataSource = CreateYieldItems();
yieldStore.DataBind();
Can you help me?Thank you so much for your support
Last edited by Daniil; Sep 03, 2012 at 11:10 AM.
Reason: Please use [CODE] tags, [CLOSED]