public final class ChartUtils extends Object
| Modifier and Type | Method and Description | 
|---|---|
static com.fasterxml.jackson.databind.node.ObjectNode | 
generateAnnotObjectNode(ChartModel cm)
Generates a JSON object node from the annotations of the given chart model. 
 | 
static com.fasterxml.jackson.databind.node.ArrayNode | 
generateDataPointArrayNode(ChartModel cm)
Generates a JSON array node from the data points of the given chart model. 
 | 
static com.fasterxml.jackson.databind.JsonNode | 
toJsonNode(ChartModel.DataPoint dp,
          ChartModel cm)
Generate a JSON node from the data point and given chart model. 
 | 
public static com.fasterxml.jackson.databind.node.ArrayNode generateDataPointArrayNode(ChartModel cm)
cm - the chart modelpublic static com.fasterxml.jackson.databind.node.ObjectNode generateAnnotObjectNode(ChartModel cm)
cm - the chart modelpublic static com.fasterxml.jackson.databind.JsonNode toJsonNode(ChartModel.DataPoint dp, ChartModel cm)
dp - the data pointcm - the chart model