Home > Sample Charts > MinMaxChart

MinMaxChart

MinMaxChart

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.


SharpPlot sp = new SharpPlot;
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);

Worked Examples

minmaxchart1 minmaxchart2 minmaxchart3 minmaxchart4

Send comments on this topic
© Dyalog Ltd 2013