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.

Parents
No Data
Reply
  • 2895
    posted

    Hello Abhilash, 

    Thank you for using our community.  

    The 11.1 version of our controls is considered deprecated and not supported in modern browsers. This is because v11.1 was created and maintained in a period of time when these browsers were not existing and the functionality and design were implemented to best fit the existing browsers environment. This has not changed. We are always ensuring and maintaining the latest volume releases to “fit in” with the latest technologies/environments. You can find more details at:
    https://es.infragistics.com/support/supported-environments

    What is more the Developer Support for NetAdvantage for 11.1 was available until May 2014, Service Release support for that product version and the retired classic toolset has expired - development issues are no longer being fixed for that version. UltraWebChart is now replaced by the WebChart control, which is based on a better architecture.

    I suggest you to upgrade your project to our latest versions if possible. 

    Best Regards,
    Marina Stoyanova,
    Software Developer,
    Infragistics, Inc.

Children