为layout模板添加图例

![snip20140526_1](https://cloud.githubusercontent.com/assets/1198651/3082743/7335c0d0-e4d8-11e3-98b3-a7c32e3facda.png)