This script creates a consumption (kWh) dataset via DATALINES. It then prepares custom axis labels by concatenating text in a DATA step and storing them in a macro variable via PROC SQL. Finally, it generates an HTML file containing a PROC GCHART with a logo added via an annotation dataset (ANNO).
Data Analysis
Type : CREATION_INTERNE
The main data is created manually in the DATA step using the DATALINES instruction.
1 Code Block
INITIALISATION
Explanation : Definition of macro variables for the file name and target date, and definition of the output fileref.
Explanation : Configuration of graphic options (GOPTIONS), opening of the ODS HTML destination, and generation of a vertical bar chart (VBAR) with data, logo annotations, and custom axes.
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration. WeAreCAS is an independent community site and is not affiliated with SAS Institute Inc.
This site uses technical and analytical cookies to improve your experience.
Read more.