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
 SPC Control Chart Tools for .Net
 Histogram bar middle of tick
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

mrart

6 Posts

Posted - 12 Apr 2009 :  22:33:12  Show Profile  Reply with Quote
How to make the histogram bar, USL, LSL at the middle of a tick instead of beginning of the tick.

refer to image

quinncurtis

1586 Posts

Posted - 13 Apr 2009 :  09:55:54  Show Profile  Reply with Quote
The FrequencyHistogramChart does not position the bars on tick marks. If you are seeing that, it is just a coincidence, based on your range of frequency limit values. A histogram bar start x-value reflects the start of one frequency bin, and the the bar ending x-value reflects the start of the next frequency bin.

The tick marks are drawn to match the calculated scale. The scale is created based on the range (minimum and maximum value) of frequency limit values, not individual limit values. The number of tick marks, and tick mark placement is not directly related to the value of individual frequency bins.

The starting and ending of each bar in a frequency histogram is determined by the values passed in as frequency limits in the InitFrequencyHistogram call. From our FrequencyHistogram example.

// Frequency bins
double [] freqLimits = {19.5, 24.5, 29.5, 34.5, 39.5, 44.5, 49.5, 54.5, 59.5};
// Initialize histogram
this.InitFrequencyHistogram(freqLimits, freqValues);

In your example, your might use frequency limit values of

double [] freqLimits = {5.75, 5.825, 5.875, 5.925, 5.975, 6.025, ... 6.225};


Also, try and set the BarJust property to JUSTIFY_MIN.

this.FrequencyHistogramPlot.BarJust = ChartObj.JUSTIFY_MIN;


This would produce a chart that looks like below.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07