[FIXED] [#57] Am not Getting Radar Series Chart Dynamically.

Page 1 of 2 12 LastLast
  1. #1

    [FIXED] [#57] Am not Getting Radar Series Chart Dynamically.

    i am unable to set the radar series style, makerconfig.radius, makerconfig.size in RadarSeries from codebehind help me,
    see the code of RadarSeries Chart.

    <%@ Page Language="C#"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <script type="text/javascript">
            function saveChart(btn) {
                Ext.MessageBox.confirm('Confirm Download', 'Would you like to download the chart as an image?', function (choice) {
                    if (choice == 'yes') {
                            type: 'image/png'
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
           RadarSeries rs = new RadarSeries();
            rs.ShowMarkers = true;
            rs.ShowInLegend = true;
            RadialAxis ra = new RadialAxis();
             rs.Style.Fill = "none";    //Am Getting Error here
            //rs.Style.Fill = "";
            rs.MarkerConfig.Radius = 5;  //Am Getting Error here
            rs.MarkerConfig.Size = 5;    //Am Getting Error here
            var ds = new[] {
                    new { Name = "Apples",  Data1 = "45.0" },
                    new { Name = "Oranges", Data1 = "35.0" },
                    new { Name = "Pears",   Data1 = "20.0" }
            String[] str = new string[] { "Data1" };
            rs.YField = str;
            String[] str1 = new string[] { "Name" };
            rs.XField = str1;
            Store1.DataSource = ds;
        <form id="form1" runat="server">
            <ext:ResourceManager ID="ResourceManager1" runat="server" />
            <ext:Panel ID="Panel1" runat="server" Title="Radar Chart" Width="800" Height="600"
                StyleSpec="overflow:hidden;" Layout="FitLayout">
                    <ext:Toolbar ID="Toolbar1" runat="server">
                            <ext:Button ID="Button3" runat="server" Text="Save Chart" Icon="Disk" Handler="saveChart" />
                    <ext:Chart ID="Chart1" runat="server" StyleSpec="background:#fff;" StandardTheme="Category2"
                        InsetPadding="20" Animate="true" >
                        <LegendConfig Position="Right" />
                            <ext:Store ID="Store1" runat="server">
                                    <ext:Model ID="Model1" runat="server">
                                                <ext:ModelField Name="Name" />
                                                <ext:ModelField Name="Data1" />
    Thank You.
    Last edited by fabricio.murta; Apr 26, 2016 at 11:10 PM.
  2. #2
    Hi @nagesh,

    Unfortunately, the sample throws:
    Parser Error Message: Could not load type 'DynamicChart3'.
  3. #3

    Hi Daniil

    Hi Daniil
    Check it once again now, it won't give any error.
    Thank You
  4. #4
    Sample now throws the following error:

    Compiler Error Message: CS0103: The name 'cn' does not exist in the current context
    Geoffrey McGill
  5. #5
    OP updated sample, now throws following exception:

    Compiler Error Message: CS0246: The type or namespace name 'SqlConnection' could not be found (are you missing a using directive or an assembly reference?)
    Unfortunately, we're not going to be able to test if a SQL database is required. You'll have to create a local data source. Maybe a List of objects.
    Geoffrey McGill
  6. #6
    when I run the sample, it throws an "Object reference not set to an instance of an object." exception on that line.

    Is the .Style property null?

    maybe you have to create a new instance of whatever object type the .Style property is and set that?
    Geoffrey McGill
  7. #7

    Hi Mcgill

    Hi Mcgill,
    See the Below Image..
    Click image for larger version. 

Name:	fill.JPG 
Views:	92 
Size:	23.3 KB 
ID:	5100
  8. #8
    The type of the Style property is SpriteAttributes.
    RadarSeries rs = new RadarSeries();
    rs.Style = new SpriteAttributes();
  9. #9


    Thanks Mcgill and Daniil,

    Am Getting Radar Series Chart, but am unable to get the names on circle like first image, see below images.

    Click image for larger version. 

Name:	RadarBasicChart.JPG 
Views:	121 
Size:	60.0 KB 
ID:	5102

    Click image for larger version. 

Name:	radar.JPG 
Views:	82 
Size:	38.4 KB 
ID:	5103
    Last edited by nagesh; Nov 16, 2012 at 9:59 AM.
  10. #10
    I think it is a bug. Here is a report to Sencha.

    For now please replace:
    Store1.DataSource = ds;Store1.DataBind();
    Store1.Data = ds;
    Also please remove this call:
    The Render method should be used during a DirectEvent or a DirectMethod only.
Page 1 of 2 12 LastLast

Similar Threads

  1. [CLOSED] [#8] Chart: Hide Line Series values
    By cwolcott in forum 2.x Legacy Premium Help
    Replies: 12
    Last Post: Mar 14, 2013, 6:41 AM
  2. [CLOSED] [#18] Chart: Single Column Series yField incorrect
    By cwolcott in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Dec 29, 2012, 12:15 PM
  3. [OPEN] [#77] Chart legend problems with large amount of series
    By MWM2Dev in forum 2.x Legacy Premium Help
    Replies: 14
    Last Post: Dec 21, 2012, 5:23 AM
  4. [CLOSED] chart series double click event
    By SymSure in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 04, 2012, 3:03 PM
  5. [CLOSED] Text on Series and Tool tips for Grouped Bar Chart
    By WHISHWORKS in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Jul 16, 2012, 11:59 AM

Posting Permissions