T O P I C R E V I E W |
mrart |
Posted - 17 May 2010 : 23:51:23 How can I add custom line to control chart ? Customized the color and line type (dashes).
|
5 L A T E S T R E P L I E S (Newest First) |
mrart |
Posted - 18 May 2010 : 22:18:52 thanks |
quinncurtis |
Posted - 18 May 2010 : 12:12:20 You can set the +- 3-sigma limits using code similar to
// Setup upper and lower 3-sigma limits values this.PrimaryChart.GetControlLimitData(SPCChartObjects.SPC_LOWER_CONTROL_LIMIT).LimitValue = 20; this.PrimaryChart.GetControlLimitData(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT).LimitValue = 34;
You can add spec limits using code similar to: // You must add a reference (using xxxx) System.Drawing.Drawing2D at the top of your module to resolve the DashStyle.Dash constant.
// Adding a Specification limit in addition to regular SPC control limits SPCControlLimitRecord lcl2 = new SPCControlLimitRecord(this.ChartData, SPCControlLimitRecord.SPC_LOWERTHAN_LIMIT, 0, "L SPEC", "L SPEC"); this.PrimaryChart.AddAdditionalControlLimit(lcl2, SPCChartObjects.SPC_MEASURED_VARIABLE, 1); lcl2.ControlLimitValue = 26; this.PrimaryChart.GetControlLimitData(SPCChartObjects.SPC_LOWER_CONTROL_LIMIT_2).LinePlot.LineColor = Color.Green; this.PrimaryChart.GetControlLimitData(SPCChartObjects.SPC_LOWER_CONTROL_LIMIT_2).LinePlot.LineStyle = DashStyle.Dash;
SPCControlLimitRecord ucl2 = new SPCControlLimitRecord(this.ChartData, SPCControlLimitRecord.SPC_GREATERTHAN_LIMIT, 0, "H SPEC", "H SPEC"); this.PrimaryChart.AddAdditionalControlLimit(ucl2, SPCChartObjects.SPC_MEASURED_VARIABLE, 1); ucl2.ControlLimitValue = 32; this.PrimaryChart.GetControlLimitData(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT_2).LinePlot.LineColor = Color.Yellow; this.PrimaryChart.GetControlLimitData(SPCChartObjects.SPC_UPPER_CONTROL_LIMIT_2).LinePlot.LineStyle = DashStyle.Dash;
|
mrart |
Posted - 18 May 2010 : 11:54:37 I am looking to add - Upper and Lower Specification line - +/-3 Sigma line to the existing Control Chart during loading.
|
quinncurtis |
Posted - 18 May 2010 : 09:11:01 Do you want to add fixed limit lines, like specification limits, to the chart; or are you looking to add a variable line, like the x-bar line of the primary chart? You can do the former, but not the latter. |
mrart |
Posted - 18 May 2010 : 04:03:14 More than 2 custom line with difference color and dashes. |
|
|