score:1

in theory you should be able to pre-render 5 line charts in addition to your stacked bar chart. give each line chart a unique id or class html attribute, and each segment of a specific color needs a corresponding html classname, eg 'chartsegmentpurple' (actually it would be better to name the class based upon what the color represents, eg 'chartsegmenteconomicinequality'). keep each line chart hidden. give your chart an event listener for hover, then in the event handler get the classname. use the classname to make visible the corresponding line chart.


Related Query

More Query from same tag