[CLOSED] chart not working anymore

  1. #1

    [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:

                                   <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.items
    Chart 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]
  2. #2
    Hi Hans,

    Could you, please, provide a full test case to reproduce?

Similar Threads

  1. [CLOSED] Chart Not working
    By PriceRightHTML5team in forum 2.x Legacy Premium Help
    Replies: 12
    Last Post: Jul 19, 2013, 11:06 AM
  2. [CLOSED] Type="Submit" not working anymore
    By reinout.mechant@imprss.be in forum 2.x Legacy Premium Help
    Replies: 7
    Last Post: Jun 18, 2013, 10:15 PM
  3. [CLOSED] TreePanel & TreeStore setRootNode() not working anymore?
    By cleve in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 15, 2013, 3:16 PM
  4. Replies: 4
    Last Post: Oct 03, 2012, 12:50 PM
  5. [1.0] Autoscroll not working anymore in Portal
    By AlexWight in forum 1.x Help
    Replies: 4
    Last Post: Apr 06, 2010, 12:11 PM

Posting Permissions