Refactoring Stacked Bar Chart class, adding mouseover events to legend text