- // Have to do this every time, since styles might have changed.
- // TODO(danvk): this is not necessary; dashes never used in this case.
- var oneEmWidth = calculateEmWidthInDiv(this.legend_div_);
-
- var html = generateLegendHTML(e.dygraph, xValue, points, oneEmWidth);
+ var html = generateLegendHTML(e.dygraph, xValue, points, this.one_em_width_);