| Contents > SharpPlot > Methods | Index |
SharpPlot.DrawMinMaxChart Method
Construct hi-lo plot, joining maximum with minimum data values for each axis value.
Example
open = new int[] {190,150,310,240,140,170};
close = new int[] {150,310,240,140,170,240};
xdata = new int[] {17,18,19,22,23,24};
sp.SetMarkers(MarkerStyle.LargeBullet);
sp.MinMaxChartStyle = MinMaxChartStyles.ArrowLines|MinMaxChartStyles.DriftMarkers;
sp.DrawMinMaxChart(xdata,open,close);
The short tutorial shows a few of the possibilities and some sample code.
Overloads
- public void DrawMinMaxChart(int[] maxValues);
- public void DrawMinMaxChart(double[] maxValues);
- public void DrawMinMaxChart(int[] maxValues,int[] minValues);
- public void DrawMinMaxChart(double[] maxValues,double[] minValues);
- public void DrawMinMaxChart(int[] maxValues,int[] minValues,int[] axisValues);
- public void DrawMinMaxChart(double[] maxValues,double[] minValues,int[] axisValues);
- public void DrawMinMaxChart(double[] maxValues,double[] minValues,double[] axisValues);
Description
Some data series are best represented by their range at each time-value. Temperature data is typical here the most informative chart shows the maximum and minimum values by day, with the range drawn as a vertical line. This chart is also commonly used for stock-price data where the daily high and low may be combined with opening and closing values to produce a wide variety of typical Wall Street Journal plots of the market data.
This chart is normally drawn vertically, but may be switched around using the Horizontal style where it is more appropriate to show the range running across the page.
See also ...
SharpPlot Members | MinMaxChartStyle Property | Min-Max or Hi-Lo charts

