Fixed a bug in the LineChart class