modification to dygraphs