First version of dynamic chart
Add animation and xAxis data change
Code refactoring