private void InitializeChart() { Series series1 = new Series(); m_Chart.Series.Add(series1); for (int index = 1; index < m_Data.Values.Count; index++) { double value = m_Data.Values[index]; series1.Points.AddY(value); } // HistogramChartHelper is a helper class found in the samples Utilities folder. HistogramChartHelper histogramHelper = new HistogramChartHelper(); // Show the percent frequency on the right Y axis. histogramHelper.ShowPercentOnSecondaryYAxis = false; // Specify number of segment intervals //histogramHelper.SegmentIntervalNumber = 20; // Or you can specify the exact length of the interval histogramHelper.SegmentIntervalWidth = 1; // Create histogram series histogramHelper.CreateHistogram(m_Chart, "Series1", "Histogram"); }
private void InitializeChart() { Series series1 = new Series(); m_Chart.Series.Add(series1); for (int index = 1; index < m_Data.Values.Count; index++) { double value = m_Data.Values[index]; series1.Points.AddY(value); } // HistogramChartHelper is a helper class found in the samples Utilities folder. HistogramChartHelper histogramHelper = new HistogramChartHelper(); // Show the percent frequency on the right Y axis. histogramHelper.ShowPercentOnSecondaryYAxis = false; // Specify number of segment intervals //histogramHelper.SegmentIntervalNumber = 20; // Or you can specify the exact length of the interval histogramHelper.SegmentIntervalWidth = 1; // Create histogram series histogramHelper.CreateHistogram(m_Chart, "Series1", "Histogram"); }