Better dygraphs string generator