add tooltip support
add some properties to legend