Display dates in tooltip.
Refactor into buildChart().
Make sure lineResults is len(libraries) so that color mappings are right.
Remove debugging console logging.
Fix x scale to be related to time.