Home > Sample Charts > TowerChart

TowerChart

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


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

Worked Examples

towerchart1 towerchart2 towerchart3 towerchart4

Send comments on this topic
© Dyalog Ltd 2013