Draw chart legend

Signed-off-by: Chun Chen <chun.chen@archermind.com>
Remove useless debug message

Signed-off-by: Chun Chen <chun.chen@archermind.com>