bug fix: add data to series first before adding to the chart