refactor to support series update of high charts.