@oliasoft-open-source/charts-library 2.5.4 → 2.5.5
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.
package/package.json
CHANGED
package/release-notes.md
CHANGED
|
@@ -106,12 +106,13 @@ const getAnnotation = (options, state) => {
|
|
|
106
106
|
const isAnnotationShown = annotations?.showAnnotations;
|
|
107
107
|
const isAnnotationDataProvided = annotations?.annotationsData?.length;
|
|
108
108
|
|
|
109
|
-
const formAnnotation =
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
109
|
+
const formAnnotation =
|
|
110
|
+
isAnnotationShown && isAnnotationDataProvided
|
|
111
|
+
? {
|
|
112
|
+
...getLabelAnnotation(options),
|
|
113
|
+
...generateAnnotations(options, state),
|
|
114
|
+
}
|
|
115
|
+
: null;
|
|
115
116
|
|
|
116
117
|
return {
|
|
117
118
|
annotations: formAnnotation,
|