Jump to content
Software FX Community

Re: System.ArgumentException Invalid parameter used Error


User (Legacy)

Recommended Posts

version (build) of Chart FX are you using ?

Assembly Version : 6.0.839.0

File Version:6.0.1262.25316

Do you have a page that reproduces the problem ?

The same page working fine most of the time only on few occasions it is

failing.

Here is the source code to generate chart....

Dim _olstProvider As New ListProvider(_oarrChartData)

Chart1.DataSourceSettings.DataSource = _olstProvider

Dim title As SoftwareFX.ChartFX.Internet.Server.TitleDockable

title = Chart1.Titles(0)

title.Alignment = System.Drawing.StringAlignment.Center

title.Font = New System.Drawing.Font("Times New Roman", 10,

System.Drawing.FontStyle.Bold)

title.Text = UCase(_strChartTitle)

title.TextColor = System.Drawing.Color.Black

title.DrawingArea = False

Chart1.DataSourceSettings.DataType(0) =

SoftwareFX.ChartFX.DataType.Label

Chart1.DataSourceSettings.DataType(1) =

SoftwareFX.ChartFX.DataType.Value

Chart1.DataSourceSettings.DataType(2) =

SoftwareFX.ChartFX.DataType.Value

Dim series As

SoftwareFX.ChartFX.Internet.Server.SeriesAttributes = Chart1.Series(0)

Dim series1 As

SoftwareFX.ChartFX.Internet.Server.SeriesAttributes = Chart1.Series(1)

Chart1.AxisY.Min = 0.0

Dim totValues As Integer = Chart1.NValues

Dim intNoValues As Integer

Dim intNoEmptyValue As Integer = 0

Dim intNoExEmptyValue As Integer = 0

For intNoValues = 0 To (totValues - 1)

If (Chart1.Value(0, intNoValues) = -1) Then

'Red to the points that plot above the limit

Chart1.Value(0, intNoValues) = Chart1.Hidden

intNoEmptyValue = intNoEmptyValue + 1

End If

If (Chart1.Value(1, intNoValues) = -1) Then

'Red to the points that plot above the limit

Chart1.Value(1, intNoValues) = Chart1.Hidden

intNoExEmptyValue = intNoExEmptyValue + 1

End If

Next

If totValues = intNoEmptyValue And intNoEmptyValue =

intNoExEmptyValue Then Chart1.AxisY.Max = 100

Chart1.SerLeg(0) = ""

Chart1.SerLeg(1) = ""

Chart1.UserLegendBoxObj.DrawingArea = True

Chart1.UserLegendBoxObj.Docked =

SoftwareFX.ChartFX.Docked.Bottom

Chart1.UserLegendBoxObj.Item(0).Label = "Score Applied"

Chart1.UserLegendBoxObj.Item(1).Label = "Score Excluded"

Chart1.UserLegendBoxObj.Item(0).Color = Color.Blue

Chart1.UserLegendBoxObj.Item(1).Color = Color.LightBlue

Chart1.UserLegendBox = True

series.PointLabels = True

series.PointLabelAngle = 90

series.PointLabelAlign = SoftwareFX.ChartFX.LabelAlign.Top

series1.PointLabels = True

series1.PointLabelAngle = 90

series1.PointLabelAlign = SoftwareFX.ChartFX.LabelAlign.VCenter

Chart1.Series(0).Color = Color.Blue

Chart1.Series(1).Color = Color.LightBlue

Chart1.Series(1).Pattern =

Drawing.Drawing2D.HatchStyle.DashedHorizontal

Chart1.DataEditor = True

Dim dataEditor As SoftwareFX.ChartFX.Internet.Server.DataEditor

dataEditor = Chart1.DataEditorObj

dataEditor.ShowHeader = True

dataEditor.Alignment = SoftwareFX.ChartFX.ToolAlignment.Center

dataEditor.Docked = SoftwareFX.ChartFX.Docked.Right

dataEditor.MaxSizePercentage = 50

Hope this helps to trouble shoot the problem.

Thanks

Robert

Link to comment
Share on other sites

We are using latest service pack of ChartFX still it throws above error.

"SoftwareFX Support" <support@softwarefx.com> wrote in message

news:EJPVXqiqDHA.1560@WEBSERVER1...

> I will see if I can reproduce the problem using your code.

>

> I would be a good idea to download the latest service pack: 6.0.1262 from

> our support site to see if that fixes the problem.

>

> --

> FP

> Software FX, Inc.

>

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...