chart.js line chart animation on canvas update react class state

JavaScript
<Line ref={ref => this.chartRefernece = ref} width={500} height={150} data={options} legend={legend} className="network-chart" options={axisOptions} />
Source

Also in JavaScript: