add support for legends in graph renderer. add start of dashboard html page