We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent edd1f5c commit b807779Copy full SHA for b807779
core/src/main/java/org/faststats/chart/SimpleLineChart.java
@@ -14,6 +14,6 @@ public SimpleLineChart(@ChartId String id, Callable<@Nullable Number> callable)
14
15
@Override
16
public Optional<JsonElement> getData() throws Exception {
17
- return compute().map(JsonPrimitive::new);
+ return compute().filter(number -> number.doubleValue() != 0).map(JsonPrimitive::new);
18
}
19
0 commit comments