Feb 10, 2014, 8:26 AM
[CLOSED] chart not working anymore
Hi,
I downloaded the latest version of Ext.net today with svn and saw that there where changes in the chart files and chart examples.
Testing an application with the latest version resulted in an error:
StoreId is defined earlier:
Now I get an error:
Chart h exists (id = "ChartGroups") but its store is null.
Any idea?
Hans Wapenaar
I downloaded the latest version of Ext.net today with svn and saw that there where changes in the chart files and chart examples.
Testing an application with the latest version resulted in an error:
<ext:Chart
ID="ChartGroups" IDMode="Static"
runat="server"
Shadow="true"
Animate="true"
StoreID="StoreGroups"
Theme="Fancy"
StyleSpec="background-color: white;" >
<Axes>
<ext:NumericAxis
Fields="index"
Position="Bottom"
Grid="true"
Minimum="0"
Maximum="250">
</ext:NumericAxis>
<ext:CategoryAxis
Fields="naam"
Position="Left">
</ext:CategoryAxis>
</Axes>
<Series>
<ext:BarSeries SeriesID="ChartGroupsSeriesColumn"
Axis="Bottom"
Highlight="true"
XField="naam"
YField="index">
<HighlightConfig Stroke="red" />
<Tips ID="Tips1" TrackMouse="true" Width="140" Height="26" runat="server" >
<Renderer Handler="this.setTitle('index: ' + storeItem.get('index') );" />
</Tips>
<Label
Display="InsideEnd"
Field="index"
Orientation="Horizontal"
Color="#333"
TextAnchor="middle" >
<Renderer Handler="return Ext.util.Format.number(value, '0');" />
</Label>
<Listeners>
<ItemClick Handler= "App.direct.resultChartSeriesListener(item.storeItem.data);"></ItemClick>
</Listeners>
</ext:BarSeries>
</Series>
</ext:Chart>
This code/chart is placed in a rowexpander of a gridpanel.StoreId is defined earlier:
<ext:Store ID="StoreGroups"
runat="server"
AutoDataBind="true">
<Model>
<ext:Model ID="ModelGroups" runat="server">
<Fields>
<ext:ModelField Name="id" />
<ext:ModelField Name="index" />
<ext:ModelField Name="naam" />
<ext:ModelField Name="code" />
<ext:ModelField Name="group" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
After a change event of another component the data is set: Dim dttable As DataTable = gischart.getAreaData() ' call method to fill datatable
ChartGroups.GetStore.Data = dttable
ChartGroups.GetStore.DataBind()
ChartGroups.UpdateLayout()
Until the latest version of ext.net this worked fine. Now I get an error:
doConstrain:function(){var u=this,h=u.chart,b=h.getChartStore(),j=b.data.items,t,w,a,e=h.series.items,k=u.fields,c=k.length,g=u.calcEnds
etc.
highlighted error is: j=b.data.itemsChart h exists (id = "ChartGroups") but its store is null.
Any idea?
Hans Wapenaar
Last edited by Daniil; Feb 14, 2014 at 1:51 PM.
Reason: [CLOSED]