fix for issue #199, charts API