merged legend and tooltip, removed unuses styles