[CLOSED] Radar displaying issue

  1. #1

    [CLOSED] Radar displaying issue

    Hi,
    I implemented a Radar but the chart doesn't display this is the code below :
    Controller Code:
     public class HomeController : Controller
        {
            public List<object> RadarData
            {
                get
                {
                    return new List<object> 
                { 
                    new { Name = "test0", Data = 90 },
                    new { Name = "test0", Data = 50 },
                    new { Name = "test0", Data = 10 },
                    new { Name = "test0", Data = 35 },
                    new { Name = "test0", Data = 25 },
                    new { Name = "test0", Data = 45 },
                    new { Name = "test0", Data = 55 },
                    new { Name = "test0", Data = 88 },
                    new { Name = "test0", Data = 76 },
                    new { Name = "test0", Data = 12 }
                };
                }
            }
    
            public ActionResult Radar()
            {
                return View();
            }
    
            public StoreResult StoreRadar()
            {
                StoreResult storeResult = new StoreResult();
                storeResult.Data = RadarData;
                storeResult.Total = RadarData.Count();
                return storeResult;
            }
        }
    ASPX Code
    <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <!DOCTYPE html>
    <html>
    <head runat="server">
    </head>
    <ext:ResourceManager ID="ResourceManager1" runat="server" />
    <body>
        <ext:Panel ID="Panel1" runat="server" Title="Radar Chart" Width="800" Height="600"
            StyleSpec="overflow:hidden;" Layout="FitLayout">
            <Items>
                <ext:Chart ID="Chart1" runat="server" StyleSpec="background:#fff;" StandardTheme="Category2"
                    InsetPadding="20" Animate="true">
                    <LegendConfig Position="Right" />
                    <Store>
                        <ext:Store runat="server" AutoDataBind="true">
                            <Model>
                                <ext:Model runat="server">
                                    <Fields>
                                        <ext:ModelField Name="Name" />
                                        <ext:ModelField Name="Data" />
                                    </Fields>
                                </ext:Model>
                            </Model>
                            <Proxy>
                                <ext:AjaxProxy Url="/Home/StoreRadar">
                                    <Reader>
                                        <ext:JsonReader Root="data" />
                                    </Reader>
                                </ext:AjaxProxy>
                            </Proxy>
                        </ext:Store>
                    </Store>
                    <Axes>
                        <ext:RadialAxis />
                    </Axes>
                    <Series>
                        <ext:RadarSeries XField="Name" YField="Data" ShowInLegend="true" ShowMarkers="true">
                            <MarkerConfig Radius="5" Size="5" />
                            <Style StrokeWidth="2" Fill="none" />
                        </ext:RadarSeries>
                    </Series>
                </ext:Chart>
            </Items>
        </ext:Panel>
    </body>
    </html>
    Last edited by Daniil; Mar 04, 2013 at 10:51 AM. Reason: [CLOSED]
  2. #2
    Hi @Daly_AF,

    Probably, you have the same problem as here.
    http://forums.ext.net/showthread.php?23541

    Please try to remove LegendConfig or use the suggested fix.
  3. #3
    I removed the legend config but the same bug still occurred.
  4. #4
    Ok.

    Then you deal with this bug.
    http://www.sencha.com/forum/showthread.php?255299

    A possible workaround for now is removing the AjaxProxy and pass the data to the View via a Model.
  5. #5
  6. #6
    Hi,
    I have downloaded the latest version of EXT.NET but this bug is not yet fixed
  7. #7
    Yes, the Sencha thread is still [OPEN].

Similar Threads

  1. Replies: 7
    Last Post: Apr 26, 2016, 10:36 PM
  2. Replies: 13
    Last Post: Apr 26, 2016, 10:11 PM
  3. Calendar displaying problem
    By ozlem in forum 2.x Help
    Replies: 1
    Last Post: Feb 18, 2013, 7:52 AM
  4. Replies: 3
    Last Post: Dec 05, 2012, 1:38 PM
  5. Problems displaying examples
    By welberger in forum Examples and Extras
    Replies: 2
    Last Post: Nov 30, 2009, 9:08 AM

Posting Permissions