prelim legend, fix hover over diagram