User (Legacy) Posted October 12, 2005 Report Share Posted October 12, 2005 Hi~~ Forgive my rusty english. I'm wondering the above subject now.... I added custom UCL and LCL contant lines to my X Chart and R chart. Yes, It works good... but I can't hide the lines and labels generated by contol. I've changed the collection of studies , but in runtime the change doesn't work. Also I think LCL values under 0 in R chart has no meanings....so I want it to be hidden. So I have added code as follows. StudyConstant stdc = ( StudyConstant )this.stsRChart.Studies[2]; // hide lcl( '2' is the LCL's index number of studies ) object[] _icol = ((object[])(stdc.ConstantLines)) ; ConstantLine cstl = ( ConstantLine )(_icol[0]); cstl.ShowLine = false; cstl.ShowText = false; stdc.Interactive = false; stdc.ShowLabel = false; stdc.Visible = false; stdc.Value = double.NaN; stdc.Text = ""; stdc = (StudyConstant)this.stsRChart.Studies[0]; // hide ucl( '0' is the UCL's index number of studies ) _icol = ((object[])(stdc.ConstantLines)) ; cstl = ( ConstantLine )(_icol[0]); cstl.ShowLine = false; cstl.ShowText = false; stdc.Interactive = false; stdc.ShowLabel = false; stdc.Visible = false; stdc.Value = double.NaN; stdc.Text = ""; But it also doesn't work... How can I use custom UCL/LCL lines and labels? How can I hide generated UCL/LCL lines and labels? Because the fractional vlaues of the generated are slightly different from my custom values, I need to do that... Thanks Jay. Link to comment Share on other sites More sharing options...
Software FX Posted November 21, 2005 Report Share Posted November 21, 2005 Control charts always have limits, that's what defines them. You can change the way limits are calculated by assigning Sigma to the Control Chart gallery. For example: statistics1.Gallery.XChart.Sigma = 10; -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.