Implementing legend
Fixing layout of chart