Recently a colleague was requested to create a bar chart showing the performance of students in a school compared to county and state wide schools. The solution using SGPLOT was simple as shown below. /*--Create data--*/ data school; input Year Group $ Value; format Value percent5.1; datalines;
Tag: DataLabel
A common request on the communities page is to place data labels on horizontal bar charts. Often users want to display stacked horizontal bar charts, with the values displayed for each segment and the overall value of the bar itself as shown in the example below. In this example, the
Most simple graphs generally include graphical representation of data using various plot type such as bar charts, scatter plots, histograms, box plots step plots and more. Both SG procedures and GTL provide many easy ways to create such graphs. However, for many real world use cases, we need to display related textual data in
In the first article on Getting Started with GTL, we discussed the basics on how to create a graph using the Graph Template Language. This involved the creation of a "statgraph" template using the TEMPLATE procedure, and then associating data with the template to create the graph using the SGRENDER
SG procedures and GTL use a collision avoidance algorithm to position data labels for a scatter or series plot. This is enabled by default. The label is preferably placed at the top right corner of the marker. The label is moved to one of the eight locations around the marker to
Creating bar charts with log response axis has come up a few times in the past few days. Before we look into how we could do this, it would be worth pointing out the considerable opinion in the blogosphere against use of log response axes for bar charts. See BizIntelGuru and