As the first step in the decommissioning of sasCommunity.org the site has been converted to read-only mode.
Here are some tips for How to share your SAS knowledge with your professional network.
Can SAS® Do Canvas? Creating Graphs Using HTML 5 Canvas Elements
With the introduction of the canvas element in the HTML 5 specifications, an interesting alternative for creating nice-looking graphs that are compatible with most Web browsers has become available. The purpose of this paper is to provide an introduction to the canvas element and how to let SAS® draw on it. The examples that are given have been tested in SAS® on Microsoft Windows and UNIX with different Web browsers on Windows, Linux, and Mac OS X as client.
This page was created to share the PowerPoint presentation and example code related to this paper.
The pdf of the full paper:.
The PowerPoint presentation used at SGF 2011: 282-2011.ppt.
- canvas_macros.sas (macros required by programs below)
- excanvas.sas (rename to excanvas.js, required for output of programs and html file below)
Note: it's advisable to download the latest version of Explorer Canvas via GitHub. The output is currently set up to always include excanvas.js in Internet Explorer. This might not be necessary in Internet Explorer 9+.
Edwin J. van Stein
User page: ejvanstein