adapted for nvd3 1.1.15b