Rewrite chart functions to share data transformations.