Implemented update() in ChartView