The chart variable QUANTITY specifies the size of the tiles.


The FLOW layout arranges the tiles.


The TILEBY=(levels-list) variable list defines the tile segments and the chart levels.


The COLORVAR=PROFIT option specifies the variable to use to color the tiles.


The DETAILLEVEL=1 option defines the level of display detail.


The COLORRAMP= option reverses the colors. Blue represents the highest value. Red represents the lowest value.


proc gtile data=sports_only;
    flow quantity tileby=(product_group year) /
        colorvar=profit
        /* display less details */
        detaillevel=1 
        /* reverse the colors so that blue is highest */
        colorramp=(CXDD6060 CXFFFFFF CX6497EB);
run;
quit;