simplify writing, use ChartWriter interface