[CLOSED] Turning on Legend for a chart freezes browser (IE and Chrome)

  1. #1

    [CLOSED] Turning on Legend for a chart freezes browser (IE and Chrome)

    When the page loads, entire browser locks up. You can't even type into the textbox. After a while, you get warning in IE about slow running script. If you remove the LegendConfig, it all works fine. I got latest from trunk this afternoon.

    <script runat="server">
        Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            Me.ResourceManager1.RegisterIcon(Ext.Net.Icon.Disk)
     
            If Not IsPostBack Then
                Dim data As New List(Of Object)
                
                data.Add(New With {.XField = "Jan", .Value = 0.75})
                data.Add(New With {.XField = "Feb", .Value = 0.8})
                data.Add(New With {.XField = "Mar", .Value = 0.85})
                data.Add(New With {.XField = "Apr", .Value = 0.9})
                data.Add(New With {.XField = "May", .Value = 0.8})
                data.Add(New With {.XField = "Jun", .Value = 0.75})
                data.Add(New With {.XField = "Jul", .Value = 0.85})
                
                Me.store.DataSource = data
                Me.store.DataBind()
                
            End If
        End Sub
        
    
    
        
    </script>
    <!DOCTYPE html>
    <html>
    <head id="Head1" runat="server">
    </head>
    <body>
        <script type="text/javascript">
    
    
        </script>
        <form id="Form1" runat="server">
        <ext:ResourceManager ID="ResourceManager1" runat="server" ScriptMode="Debug" Theme="Gray"
            DisableViewState="true" />
        <ext:Panel runat="server" Title="Chart" Width="400" Height="400" Layout="FitLayout">
            <Items>
                <ext:Chart runat="server">
                    <LegendConfig Position="Right">
                    </LegendConfig>
                    <Axes>
                        <ext:NumericAxis Position="Left" Fields="Value">                        
                        </ext:NumericAxis>
                        <ext:CategoryAxis Position="Bottom" Fields="XField">
                        </ext:CategoryAxis>
                    </Axes>
                    <Series>
                        <ext:LineSeries XField="XField" YField="Value">
                            <Label Display="Under" Field="Value">
                            </Label>
                        </ext:LineSeries>
                    </Series>
                    <Store>
                        <ext:Store runat="server" ID="store">
                            <Model>
                                <ext:Model runat="server">
                                    <Fields>
                                        <ext:ModelField Name="XField">
                                        </ext:ModelField>
                                        <ext:ModelField Name="Value">
                                        </ext:ModelField>
                                    </Fields>
                                </ext:Model>
                            </Model>
                        </ext:Store>
                    </Store>
                </ext:Chart>
            </Items>
        </ext:Panel>
        <ext:TextField runat="server"></ext:TextField>
        </form>
    </body>
    </html>
    Last edited by Daniil; Feb 18, 2013 at 5:30 AM. Reason: [CLOSED]
  2. #2
    Yesterday, we updated ExtJS (to 4.2 RC) in trunk, the issue is fixed in that version

Similar Threads

  1. [CLOSED] Legend in Column Chart
    By Tactem in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Nov 08, 2013, 11:29 AM
  2. [CLOSED] Regex evaluation freezes the browser
    By vadym.f in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Feb 05, 2013, 12:26 PM
  3. [CLOSED] Chart Legend Names
    By cwolcott in forum 2.x Legacy Premium Help
    Replies: 6
    Last Post: Nov 05, 2012, 3:39 PM
  4. chart legend
    By koma in forum 2.x Help
    Replies: 0
    Last Post: Sep 12, 2012, 3:09 AM
  5. Replies: 2
    Last Post: Aug 13, 2012, 2:12 PM

Posting Permissions