| ||
Introducing SharpPlot Your First Chart Recent Updates Sample Charts Tutorials General Tutorials Chart Tutorials SharpPlot Class Properties Structures Enumerations Style examples Glossaries Active Charts VectorMath Class DBUtil Class Get SharpPlot Download SharpPlot Buying SharpPlot SharpPlot Support Upgrading from GraPL Release notes |
Reference > Methods > DrawTowerChart Method SharpPlot.DrawTowerChart MethodDo 3D grid, and construct towerchart from simple rectangular set of heights. Examplesp.SetMargins(0,12,18,4); towers = new int[][]{new int[]{77,65,12},new int[]{34,29,11}}; sp.TowerChartStyle = TowerChartStyles.WallShading|TowerChartStyles.GridLines; sp.ZAxisStyle = ZAxisStyles.ForceZero; sp.SetZTickMarks(20); sp.Perspective = 6; sp.SetAxisStyle(Color.Gray,LineStyle.Solid,0.5); sp.DrawTowerChart(towers); The short tutorial shows a few of the possibilities and some sample code. Overloads
DescriptionTowercharts are simply grouped barcharts with the bars drawn ‘behind’ each other rather than in groups along the X-axis. They are best used where the visual effect is more important than the readability of the data values, as it is almost impossible to read the ‘height’ values reliably, and it is very likely that in a crowded chart some towers will be completely obscured. It may be necessary to allow the user to adjust the tower-spacing and viewpoint to get a clear picture of the relative heights of the towers, and it is generally best to sort the data so that the taller towers are further away from the viewpoint. See also ...Using Towercharts as Summaries | SharpPlot Members | TowerChartStyle Property | SetViewpoint Method |