state management: Added duration reset to scatterchart.js
state management: fixed api issue with linechart.js