And yes, you can have the source code.
Graph line plots with plotly.js. Plotly is Free software under the MIT license.
Plotly works even if you miss a couple of data points. For example, if you have temperature for all days but Tuesday.