Reference > Methods > DrawMinMaxChart Method

SharpPlot.DrawMinMaxChart Method

Construct hi-lo plot, joining maximum with minimum data values for each axis value.

Example

sp.SetMargins(12,12,18,4);
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(Marker.Bullet);
sp.MinMaxChartStyle = MinMaxChartStyles.ArrowLines|MinMaxChartStyles.DriftMarkers;
sp.DrawMinMaxChart(open,close,xdata);

The short tutorial shows a few of the possibilities and some sample code.

Overloads

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 ...

Min-Max or Hi-Lo charts | SharpPlot Members | MinMaxChartStyle Property


Send comments on this topic
© Dyalog Ltd 2013