This example creates a vertical bar chart of vehicle type and average curb weight by
vehicle origin. The following figure shows the first graph.
Above each bar in the bar chart, an axis-aligned inset displays the average city and
highway mileages for that vehicle type. A label above the Y-axis area describes the inset
content. The dynamic variable _BYLINE_ is used to specify the origin in the chart title.
The annotation data for this example requires a subset of data for each vehicle type and
an additional subset for the inset label.
Program
/* Sort Sashelp.Cars by Origin and summarize the mileage data */
proc sort data=sashelp.cars out=cars;
by ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.