Jan 31, 2013, 12:52 PM
[FIXED] [#141] [2.x] Text doesn't appear within Radar chart
Hi,
I implemented a Radar chart but the text doesn't appear within the radar this is the code below :
ASPX code
I implemented a Radar chart but the text doesn't appear within the radar this is the code below :
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">
<meta name="viewport" content="width=device-width" />
</head>
<body>
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<form runat="server">
<ext:Panel ID="Panel2" runat="server" Flex="1" Header="false" Border="false" BodyStyle="background-color: transparent;"
Height="450">
<LayoutConfig>
<ext:HBoxLayoutConfig Align="Stretch" />
</LayoutConfig>
<Items>
<ext:Panel ID="Panel3" Header="true" Border="true" runat="server" Flex="4" MarginSpec="0 0 0 5">
<LayoutConfig>
<ext:VBoxLayoutConfig Align="Stretch" />
</LayoutConfig>
<Items>
<ext:Chart ID="Chart1" runat="server" Margin="0" InsetPadding="20" Flex="1" StandardTheme="Blue"
Animate="true">
<Store>
<ext:Store ID="RadarStore" runat="server">
<Model>
<ext:Model ID="Model2" runat="server">
<Fields>
<ext:ModelField Name="Data" />
<ext:ModelField Name="Name" />
</Fields>
</ext:Model>
</Model>
<Proxy>
<ext:AjaxProxy Url="/Research/DefaultDataStoreRadar">
<Reader>
<ext:JsonReader Root="data" />
</Reader>
</ext:AjaxProxy>
</Proxy>
</ext:Store>
</Store>
<Axes>
<ext:RadialAxis Steps="5" Maximum="100" />
</Axes>
<Series>
<ext:RadarSeries XField="Name" YField="Data" ShowInLegend="false" ShowMarkers="true"
Highlight="true">
<MarkerConfig Radius="4" Size="4" />
<Style Fill="rgb(194,214,240)" Opacity="0.5" StrokeWidth="0.5" />
</ext:RadarSeries>
</Series>
</ext:Chart>
</Items>
</ext:Panel>
</Items>
</ext:Panel>
</form>
</body>
</html>
Controller Code:public class ResearchController : Controller
{
public ActionResult Index()
{
return View();
}
public StoreResult DefaultDataStoreRadar()
{
StoreResult storeResult = new StoreResult();
storeResult.Data = RadarData;
storeResult.Total = RadarData.Count();
return storeResult;
}
public List<object> RadarData
{
get
{
return new List<object>
{
new { Name = "Price", Data = 100 },
new { Name = "Revenue %", Data = 100 },
new { Name = "Growth %", Data = 100 },
new { Name = "Product %", Data = 100 },
new { Name = "Market %", Data = 100 }
};
}
}
}
Last edited by fabricio.murta; Apr 26, 2016 at 10:34 PM.