| Samples > DialChart |
Arrowed Pointer and a Warning Zone
The Dial or Gauge chart is often used to present a single value (maybe a benchmark index of company performance) in the context of an expected or desired range. The value on its own may mean very little (maybe our production plant made 23% rejects last week) until it is set in the context of the expected range.
This chart is designed to look as if it came from an instrument panel. The red zone is very prominently marked with a wedge of color and the x-caption is used to label the value. A typical application might use several of these dials to make a cockpit view of selected key parameters for a company healthcheck.
SharpPlot sp = new SharpPlot();
sp.Heading = "Arrowed Pointer and Zone";
sp.SetAxisStyle(Color.White,LineStyle.Solid,2);
sp.SetXLabelFont("Arial",16,FontStyle.Bold,Color.White);
sp.SetBackground(Color.Silver,FillStyle.Solid);
sp.SetChartBackground(Color.Black,FillStyle.Solid);
sp.SetPenWidths(2);
sp.SetColors(Color.Red);
sp.DialChartStyle = DialChartStyles.ArrowLines|DialChartStyles.WedgeZones;
sp.SetXRange(1000);
sp.SetXTickMarks(500,4);
xzone = new Zone(700,1000,Color.Red,FillStyle.LeftHatch);
sp.SetXZones(xzone);
sp.XCaption = "rpm\n�1000";
sp.SetXCaptionFont("Times",13,FontStyle.Italic,Color.Yellow);
sp.CaptionLineSpacing = 120;
sp.DrawDialChart(345);
See also
![]() |
![]() |
![]() |
![]() |




