T O P I C R E V I E W |
mrart |
Posted - 12 Apr 2009 : 22:33:12 How to make the histogram bar, USL, LSL at the middle of a tick instead of beginning of the tick.
refer to image
 |
1 L A T E S T R E P L I E S (Newest First) |
quinncurtis |
Posted - 13 Apr 2009 : 09:55:54 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.
 |
|
|