Click here to see the SAS code.
Click here to see the example.
This was part of a proof-of-concept for a bank - they called it
a "heat map" (there are several other charts that other people call
heat maps, so consider this a general term with no specific meaning :)
This started out as a relatively simple gplot, but to get things to
look a specific way, it took quite a bit of tweaking...
For example, they wanted the x-axis to be descending, therefore we
had to use the axis statement to control that (some macro code could
be used to generalize this, and calculate the values on-the-fly,
rather than hard-coding them).
To get the labels on the markers in the plot, you might want to use
the "pointlabel" in the symbol statement - to get this graph to work
like we wanted in v8.2 sas, we used annotated text instead.
To do the colored areas of the graph, annotated 'bar' areas were
used, and the color-key was also annotated (tech support supplied
the code for that part, before I started working on it, so it uses
slightly different annotate techniques than I use in most of my
examples :)
We also used the gplot's html= option, and specified a variable
that contains html title= charttip/flyover-text, so when you mouse
over the plot in IE browsers, you see the details about that marker.
Back to Samples Index