@opendata-ai/openchart-engine 2.12.0 → 2.12.1
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/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/annotations/compute.ts +6 -3
package/dist/index.js
CHANGED
|
@@ -238,7 +238,7 @@ function resolveRangeAnnotation(annotation, scales, chartArea, isDark) {
|
|
|
238
238
|
const rect = { x: x2, y: y2, width, height };
|
|
239
239
|
let label;
|
|
240
240
|
if (annotation.label) {
|
|
241
|
-
const anchor = annotation.labelAnchor ?? "
|
|
241
|
+
const anchor = annotation.labelAnchor ?? "top";
|
|
242
242
|
const centered = anchor === "top" || anchor === "bottom" || anchor === "auto";
|
|
243
243
|
const baseDx = centered ? 0 : anchor === "right" ? -4 : 4;
|
|
244
244
|
const baseDy = 14;
|