debounce draw of chart to support responsive layout.