Package io.jmix.reports.entity.charts
Class ChartToJsonConverter
java.lang.Object
io.jmix.reports.entity.charts.ChartToJsonConverter
@Component("report_ChartToJsonConverter")
@Scope("prototype")
public class ChartToJsonConverter
extends Object
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
protected static final com.google.gson.Gson
protected InstanceNameProvider
protected String
protected static final DateTimeFormatter
protected static final DateTimeFormatter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
addProperty
(com.google.gson.JsonObject jsonObject, String property, Object value) convertPieChart
(PieChartDescription description, List<Map<String, Object>> data) convertSerialChart
(SerialChartDescription description, List<Map<String, Object>> data) static com.google.gson.GsonBuilder
protected void
exportConfig
(HashMap<String, Object> chart) static com.google.gson.Gson
protected String
protected void
mergeJsonArrays
(com.google.gson.JsonArray source, com.google.gson.JsonArray config) protected void
mergeJsonObjects
(com.google.gson.JsonObject source, com.google.gson.JsonObject config)
-
Field Details
-
DEFAULT_DATE_FORMAT
- See Also:
-
DEFAULT_TIME_FORMAT
- See Also:
-
DEFAULT_DATE_TIME_FORMAT
- See Also:
-
TEMPORAL_DATE_FORMATTER
-
TEMPORAL_DATE_TIME_FORMATTER
-
instanceNameProvider
-
gson
protected static final com.google.gson.Gson gson -
resultFileName
-
-
Constructor Details
-
ChartToJsonConverter
public ChartToJsonConverter() -
ChartToJsonConverter
-
-
Method Details
-
createGsonBuilder
public static com.google.gson.GsonBuilder createGsonBuilder()- Returns:
- default GSON builder for configuration serializer.
-
convertSerialChart
-
exportConfig
-
convertPieChart
-
mergeJsonObjects
protected void mergeJsonObjects(com.google.gson.JsonObject source, com.google.gson.JsonObject config) -
mergeJsonArrays
protected void mergeJsonArrays(com.google.gson.JsonArray source, com.google.gson.JsonArray config) -
addProperty
-
addField
-
join