pace-chart-lib 1.0.52 → 1.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -15271,6 +15271,11 @@ function stacklineAnnotations(chartData, xScale, yScaleLeft, yScaleRight, margin
|
|
|
15271
15271
|
// ?
|
|
15272
15272
|
annotationsList.push(singleAnnotation);
|
|
15273
15273
|
});
|
|
15274
|
+
if (formatOptions.annotation.annotationHideZeroValues) {
|
|
15275
|
+
annotationsList = annotationsList.filter(
|
|
15276
|
+
(d) => barChart ? d.data.x !== 0 : d.data.y !== 0
|
|
15277
|
+
);
|
|
15278
|
+
}
|
|
15274
15279
|
if (oldAnnotationList.length === 0) {
|
|
15275
15280
|
oldAnnotationList = annotationsList;
|
|
15276
15281
|
oldMap = new Map(
|
|
@@ -15274,6 +15274,11 @@
|
|
|
15274
15274
|
// ?
|
|
15275
15275
|
annotationsList.push(singleAnnotation);
|
|
15276
15276
|
});
|
|
15277
|
+
if (formatOptions.annotation.annotationHideZeroValues) {
|
|
15278
|
+
annotationsList = annotationsList.filter(
|
|
15279
|
+
(d) => barChart ? d.data.x !== 0 : d.data.y !== 0
|
|
15280
|
+
);
|
|
15281
|
+
}
|
|
15277
15282
|
if (oldAnnotationList.length === 0) {
|
|
15278
15283
|
oldAnnotationList = annotationsList;
|
|
15279
15284
|
oldMap = new Map(
|