diff --git a/src/main/java/info/blockchain/api/statistics/Chart.java b/src/main/java/info/blockchain/api/statistics/Chart.java index 554648a..e7575c0 100644 --- a/src/main/java/info/blockchain/api/statistics/Chart.java +++ b/src/main/java/info/blockchain/api/statistics/Chart.java @@ -38,7 +38,7 @@ public Chart (String status, String name, String unit, String period, String des private List getPoints(JsonObject chartJson) { List points = new ArrayList(); - for (JsonElement pointElement : chartJson.getAsJsonArray()) { + for (JsonElement pointElement : chartJson.getAsJsonArray("values")) { JsonObject pointJson = pointElement.getAsJsonObject(); points.add(new Point(pointJson)); }