add support for new plot mode dygraphs