Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Microsoft .Net
 SPC Control Chart Tools for .Net
 Histogram bar middle of tick

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

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.


Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07