SharpPlot Tutorials > Style Examples > Horizontal chart Horizontal chart
BarCharts, BoxPlots, StepCharts, MinMaxCharts and Networmaps may be drawn horizontally.
sp.BarChartStyle = BarChartStyles.Horizontal;
This does NOT change the meaning of the X and Y axes, so to label the bars, you must use Y-labels here. The same applies to other chart types which support this style, for example a population pyramid may be contructed with a horizontal stepchart:
sp.StepChartStyle = StepChartStyles.Horizontal|StepChartStyles.ValueTags|StepChartStyles.SurfaceShading;
sp.ValueTagFormat = "##9.9%";
sp.YAxisStyle = YAxisStyles.MiddleLabels;
Value tags are always drawn horizontally with this chart style.
See also ...SharpPlot Members | SharpPlot.BarChartStyle Property | SharpPlot.BoxPlotStyle Property | SharpPlot.MinMaxChartStyle Property | SharpPlot.NetworkMapStyle Property | SharpPlot.XBarChartStyle Property
Send comments on this topic © Dyalog Ltd 2021
|