Chart

  1. #1

    Chart

    Sorry for bad English.

    Recently installed the v2 ext.net, When I include chart component error occurs Element 'Chart' is not a known element.
    How to solve this problem?
  2. #2
    Hi,
    Please show your sample
  3. #3
    The example is the same site https://examples2.ext.net/#/Chart/Column/Basic/

    <form id="form1" runat="server">
            <ext:ResourceManager ID="ResourceManager1" runat="server">
            </ext:ResourceManager>
        
            <ext:Panel ID="Panel1" 
                runat="server"
                Title="Column Chart"
                Width="800"
                Height="600"
                Layout="FitLayout">
                <TopBar>
                    <ext:Toolbar ID="Toolbar1" runat="server">
                        <Items>
                            <ext:Button ID="Button1" runat="server" Text="Reload Data" Icon="ArrowRefresh" OnDirectClick="ReloadData" />
                        </Items>
                    </ext:Toolbar>
                </TopBar>
                <Items>
                    
                    <ext:Chart 
                        ID="Chart1" 
                        runat="server"
                        Shadow="true"
                        StyleSpec="background:#fff"
                        Animate="true">
                        <Store>
                            <ext:Store 
                                runat="server" 
                                Data="<%# Ext.Net.Examples.ChartData.GenerateData() %>" 
                                AutoDataBind="true">                           
                                <Model>
                                    <ext:Model runat="server">
                                        <Fields>
                                            <ext:ModelField Name="Name" />
                                            <ext:ModelField Name="Data1" />
                                        </Fields>
                                    </ext:Model>
                                </Model>
                            </ext:Store>
                        </Store>
    
                        <Axes>
                            <ext:NumericAxis                             
                                Fields="Data1"                            
                                Grid="true"
                                Title="Number of Hits"
                                Minimum="0">
                                <Label>
                                    <Renderer Handler="return Ext.util.Format.number(value, '0,0');" />
                                </Label>
                            </ext:NumericAxis>                            
    
                            <ext:CategoryAxis 
                                Position="Bottom"
                                Fields="Name"
                                Title="Month of the Year"
                                />                            
                        </Axes>
                        <Series>
                            <ext:ColumnSeries 
                                Axis="Left"
                                Highlight="true" 
                                XField="Name" 
                                YField="Data1">
                                <Tips runat="server" TrackMouse="true" Width="140" Height="28">
                                    <Renderer Handler="this.setTitle(storeItem.get('Name') + ': ' + storeItem.get('Data1'));" />
                                </Tips>
                                <Label
                                    Display="InsideEnd" 
                                    Field="Data1" 
                                    Orientation="Horizontal" 
                                    Color="#333" 
                                    TextAnchor="middle" >
                                    <Renderer Handler="return Ext.util.Format.number(value, '0');" />
                                </Label>
                            </ext:ColumnSeries>
                        </Series>
                    </ext:Chart>
                </Items>
            </ext:Panel>
    
        </form>
    Last edited by Daniil; Mar 09, 2012 at 11:25 AM. Reason: Please use [CODE] tags
  4. #4
    Are you sure that your application uses Ext.Net v2?
  5. #5
    Obviouly an issue as of yesterday around noon EST is that the default demos page is no longer for Ext.NET 1.2/1.3 . The https://examples2.ext.net/ is for Ext.NET 2.0, but that version can not be downloaded yet. So you may start to confuse some new users until Ext.NET 2.0 Beta is released.

    If you need to see examples for Ext.NET 1.2/1.3 go to https://examples1.ext.net/.
  6. #6
    Picture in Attachment
  7. #7
    v2 beta can be downloaded via Nuget
    Please see
    http://forums.ext.net/showthread.php...ll=1#post76220
  8. #8
    You're right, I did download the version ext.net.community.1.3. thousand excuses

    I'll take the forum to congratulate the great job done by all staff.

Similar Threads

  1. Replies: 2
    Last Post: Aug 13, 2012, 2:12 PM
  2. Updatepanel and ext:Chart
    By Frenks in forum 2.x Help
    Replies: 3
    Last Post: Aug 01, 2012, 8:54 AM
  3. Replies: 1
    Last Post: Jun 02, 2012, 7:12 AM
  4. Pie Chart Padding
    By cwolcott in forum 2.x Help
    Replies: 3
    Last Post: Jan 17, 2012, 5:30 AM
  5. How to Add Chart in Ext.Net Applicatim
    By archana in forum 1.x Help
    Replies: 1
    Last Post: Jan 08, 2012, 5:19 AM

Posting Permissions