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
 How to rotate chart?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sakamali

Turkey
33 Posts

Posted - 31 Dec 2014 :  04:02:13  Show Profile  Reply with Quote
Hi,
We want to use Frequency Histogram Chart. But, it must be some changing. How to rotate this chart like as below sample image?
Thanks.

quinncurtis

1586 Posts

Posted - 31 Dec 2014 :  10:04:47  Show Profile  Reply with Quote
Set the ChartOrientation property to ChartObj.HORIZ_DIR before the call to InitFrequencyHistogram

void InitializeChart()
{

// Frequency bins
double [] freqLimits = {19.5, 24.5, 29.5, 34.5, 39.5, 44.5, 49.5, 54.5, 59.5};
// data to be sorted into frequency bins
double [] freqValues = {32,44,44,42,57,
26,51,23,33,27,
42,46,43,45,44,
53,37,25,38,44,
36,40,36,48,56,
47,40,58,45,38,
32,39,43,31,45,
41,37,31,39,33,
20,50,33,50,51,
28,51,40,52,43};

this.ChartOrientation = ChartObj.HORIZ_DIR;

// Initialize histogram
this.InitFrequencyHistogram(freqLimits, freqValues);
// Set bar orientation
this.MainTitle.TextString = "Frequency Histogram of Selected Data";
// Build chart

this.BarFillColor = Color.LightCoral;
this.FrequencyHistogramPlot.SetSegmentFillColor(4,Color.Blue);
this.AddFrequencyHistogramControlLine(20.0, new ChartAttribute(Color.LightGreen, 2));
this.AddFrequencyHistogramControlLine(60.0, new ChartAttribute(Color.LightGreen, 2));
this.AutoNormalCurve = true;
this.BuildChart();

}

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