Aug 24, 2020, 4:01 AM
Not able to rendering charts in an application I have upgraded from ext 1.4 to ext 4.5 but chart stopped rendering
Hi Team
I have upgraged an ext.net 1.5 application with custom chart functionality. But the chart is not getting renedered after I we have upgraded the applicatoin. Here is the custom code of the application.
Here is the sample code for chart.
I have upgraged an ext.net 1.5 application with custom chart functionality. But the chart is not getting renedered after I we have upgraded the applicatoin. Here is the custom code of the application.
Here is the sample code for chart.
<ext:Chart
ID="PrdDisChart"
runat="server"
Shadow="true"
ColumnWidth=".5"
Flex="1"
Region="Center"
Theme="Base:gradients">
<LegendConfig Position="Right" />
<Store>
<ext:Store ID="storePrdDis" runat="server">
<Model>
<ext:Model ID="modelPrdDis" runat="server">
<Fields>
<ext:ModelField Name="Name" Type="String" />
<ext:ModelField Name="Sales" Type="Float" />
<ext:ModelField Name="Number" Type="Float" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<Series>
<ext:PieSeries
AngleField="Sales"
ShowInLegend="true"
Donut="10"
Highlight="true"
HighlightSegmentMargin="10">
<Label Field="Name" Display="Rotate" Contrast="true" Font="11px Arial" Hidden="true" />
<Tips runat="server" TrackMouse="true" Width="350" Height="30">
<Renderer Fn="tipRenderer" />
</Tips>
</ext:PieSeries>
</Series>
</ext:Chart>
codebehind.cspublic void CreateGraph()
{
var label = string.Empty;
var data = GetData();
PrdDisChart.GetStore().DataSource = data;
PrdDisChart.DataBind();
grdProduct.ReadData<BestSellingProductRecord>(data);
}
GetData()
is a server side code for returning the data.
Last edited by fabricio.murta; Sep 10, 2020 at 3:46 AM.