This example demonstrates a stacked bar chart using energy production data from eurostat. The chart is constructed from the following components:
- A Cartesian chart, with an ordinal y axis and a linear x axis.
- The data is prepared using a D3 stack layout, which stacks the 'y' values.
- The data is rendered via a horizontally oriented stacked bar series. The auto bandwidth component is used to obtain the bandwidth for the bar series from the y-oriented band scale.
- A legend, courtesy of the d3-legend project.
How can I do tooltips for each bar horizontal? Im trying to use mouseover but it's not working..