@Override protected JsonObject getChartData() { JsonObject data = new JsonObject(); int value = getValue(); if (value == 0) { // Null = skip the chart return null; } data.addProperty("value", value); return data; }
@Override protected JsonObject getChartData() { JsonObject data = new JsonObject(); int value = getValue(); if (value == 0) { // Null = skip the chart return null; } data.addProperty("value", value); return data; }