Jump to content
Software FX Community

Recommended Posts

Posted

Frank, thanks for the reply. I tried your solution, there are no errors, but the line is not visible

Here is my code

With chartCDMIVolume

.DataSourceSettings.DataSource = dt

.AxisY.Title.Text =

"CDMI Percent"

.AxisY.DataFormat.Format = ChartFX.WebForms.AxisFormat.Percentage

.AxisY.LabelsFormat.Format = ChartFX.WebForms.AxisFormat.Percentage

.AxisX.Title.Text =

"Process Date"

.AxisX.DataFormat.Format = ChartFX.WebForms.AxisFormat.Date

 

.ToolBar.Visible =

True

.LegendBox.Visible =

FalseDim oLine As New ChartFX.WebForms.CustomGridLine

oLine.Value = (cdmi_percent / lDayCount) * 100

oLine.Text =

"Average"

oLine.Color = Drawing.Color.Red

.AxisY.CustomGridLines.Add(oLine)

End With

dt is a datatable with 2 columns. Y axis has values between 0 and 7 percent and X axis displays date values.

The Average I am computing comes to 3.50 percent and I need a horizontal line plotted at this value.

Any help is appreciated.

Thanks

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...