T O P I C R E V I E W |
sakamali |
Posted - 31 Dec 2014 : 04:02:13 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.
 |
1 L A T E S T R E P L I E S (Newest First) |
quinncurtis |
Posted - 31 Dec 2014 : 10:04:47 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();
}
|
|
|