widget class with css3, a bit of legend view