Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net & .Net Compact Framework
 SPC Control Chart Tools for .Net
 USL LSL lines on Histogram Chart
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Alice

25 Posts

Posted - 04 Feb 2008 :  15:14:33  Show Profile  Reply with Quote
I am having hard time to draw usl,lsl,lcl,ucl dotted lines on Histogram Chart. It seems similiar as drawing the bell curve, but I just do not get what parameters I should pass to AddGaussianCurve().

Help please!

quinncurtis

1164 Posts

Posted - 04 Feb 2008 :  15:59:56  Show Profile  Reply with Quote
This would be because a bell curve is not a limit line. The routine would be much simpler if you were just trying to draw a limit line. You must study what is going on in the routine in order to create your own customized versions of it. A simple limit function would look something like:

Public Sub AddLimit(ByVal chart As FrequencyHistogramChart, ByVal limitvalue As Double, ByVal curvecolor As Color)
  ' This dimensions a 2 element array
  Dim limitx(1) As Double
  Dim limity(1) As Double

' Define the starting and ending point of the limit line
  limitx(0) = limitvalue
  limitx(1) = limitvalue
  limity(0) = chart.CoordinateSystem.ScaleMinY
  limity(1) = chart.CoordinateSystem.ScaleMaxY

' Define a dataset using the data
  Dim normDataset As New SimpleDataset("LimitDataset", limitx, limity)
  Dim normAttribute As New ChartAttribute(curvecolor, 3)
' Define a line plot
  Dim normPlot As New SimpleLinePlot(chart.CoordinateSystem, normDataset, normAttribute)
  Me.AddChartObject(normPlot)
End Sub
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07