Cut and paste code from line-chart repo.