correct static functions in ChartWidget