fixing getChartOptions()