parse years as floats in chart javascript