Fix HTML generation when using several data series.