May I suggest to use plotly: Line charts in JavaScript
I havent tested it on dashboard 2, but it works fine on dashboard
Examples: