Refactoring: methods of ChartBase are more const.