Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
430
RadarChart
posted

Hi,

I would like to use the Radarchart type from the webChart, i'm trying to do this, but it's not work.

Can you please help me to find an example using the code behin.

 

Thank you

  • 17605
    Verified Answer
    posted

    Try using this code:

     DataTable table = new DataTable();

            table.Columns.Add("one", typeof(string));

            table.Columns.Add("two", typeof(double));

     

            table.Rows.Add(new object[] { "a", 5 });

            table.Rows.Add(new object[] { "b", 9 });

            table.Rows.Add(new object[] { "c", 2 });

            table.Rows.Add(new object[] { "d", 10 });

     

            this.UltraChart1.ChartType = ChartType.RadarChart;

     

            this.UltraChart1.Data.ZeroAligned = true;

            this.UltraChart1.Data.SwapRowsAndColumns = true;

     

            this.UltraChart1.DataSource = table;

            this.UltraChart1.DataBind();