class ChartUtils {

    public static ArrayNode generateDataPointArrayNode(ChartModel cm) {
        ArrayNode array = MAPPER.createArrayNode();
        for (ChartModel.DataPoint dp : cm.getDataPoints()) {
            array.add(toJsonNode(dp, cm));
        }
        return array;
    }

    private  ChartUtils();

}