Update chart accordin new 2.0.1 API