C# Класс System.Windows.Forms.DataVisualization.Charting.Utilities.HistogramChartHelper

Helper class that creates a histogram chart. Histogram is a data distribution chart which shows how many values, from the data series, are inside each segment interval. You can define how many intervals you want to have using the SegmentIntervalNumber field or the exact length of the interval using the SegmentIntervalWidth field. Actual segment interval number can be slightly different due to the automatic interval rounding.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
SegmentIntervalNumber int
SegmentIntervalWidth double
ShowPercentOnSecondaryYAxis bool

Открытые методы

Метод Описание
CreateHistogram ( System.Windows.Forms.DataVisualization.Charting.Chart chartControl, string dataSeriesName, string histogramSeriesName ) : void

Creates a histogram chart.

Приватные методы

Метод Описание
RoundInterval ( double interval ) : double

Helper method which rounds specified axsi interval.

Описание методов

CreateHistogram() публичный Метод

Creates a histogram chart.
public CreateHistogram ( System.Windows.Forms.DataVisualization.Charting.Chart chartControl, string dataSeriesName, string histogramSeriesName ) : void
chartControl System.Windows.Forms.DataVisualization.Charting.Chart Chart control reference.
dataSeriesName string Name of the series which stores the original data.
histogramSeriesName string Name of the histogram series.
Результат void

Описание свойств

SegmentIntervalNumber публичное свойство

Number of class intervals the data range is devided in. This property only has affect when "SegmentIntervalWidth" is set to double.NaN.
public int SegmentIntervalNumber
Результат int

SegmentIntervalWidth публичное свойство

Histogram class interval width. Setting this value to "double.NaN" will result in automatic width calculation based on the data range and number of required interval specified in "SegmentIntervalNumber".
public double SegmentIntervalWidth
Результат double

ShowPercentOnSecondaryYAxis публичное свойство

Indicates that percent frequency should be shown on the right axis
public bool ShowPercentOnSecondaryYAxis
Результат bool