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
40
Invalid Parameter
posted

We are using UltraWebChart to draw pie-chart in our Asp.net application.

It is throwing below error when we try to load specific numbers into the chart.

Exception: System.ArgumentException
Message: Parameter is not valid.
Source: System.Drawing
at System.Drawing.Drawing2D.GraphicsPath.AddPath(GraphicsPath addingPath, Boolean connect)
at Infragistics.UltraChart.Core.Layers.Pie3DLayer.FillSceneGraphPie(SceneGraph scene, ChartLayer3D layer)
at Infragistics.UltraChart.Core.ChartCore.DrawChart()
at Infragistics.WebUI.UltraWebChart.UltraChart.Render(HtmlTextWriter output)

  •      We are using Infragistics4.WebUI.UltraWebChart.v11.1 ( Version 11.1.20111.1006)
  •      The chart implemented to show three different status. Given below is the test data table and  code snippet for chart binding

 

DataTable:

Column : LABELX          SERIES1           SORTINDEX

            Pending-11      11                    1

            Active-11        11                    2

            Inactive-83      83                    3

private static void BindDataToChart(UltraChart chart, DataTable dt)

                                {

                                                switch (chart.ChartType)

                                                {

                                                                case ChartType.PieChart3D:

                                                                                chart.DataSource = dt;

                                                                                chart.DataBind();

                                                                                chart.Data.IncludeColumn("SORTIDX", false);

                                                                                break;

                                                                ……

                                                                ……

 

 

 

  •  The below table explains a number of scenarios which is causing the error.

 

 

Pending

Active

Inactive

#1

11

11

83

#2

22

22

166

#3

44

44

332

#4

66

66

498

  •    The system will work fine if any count gets changed or numbers are swapped.   ie  scenario #1 will work fine if  Pending -11, Active -83 , Inactive -11

Any help will be highly appreciated.