Use XYLineChart instead of LineChart.