@opendata-ai/openchart-core 8.0.0-rc.25 → 8.0.0-rc.26

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.d.ts CHANGED
@@ -67,7 +67,12 @@ interface LayoutStrategy {
67
67
  *
68
68
  * Compact: minimal chrome, no inline labels, legend on top, reduced axes.
69
69
  * Medium: moderate labels, legend on top, reduced axes.
70
- * Full: all labels, legend on right, full axes.
70
+ * Full: all labels, legend on top, full axes.
71
+ *
72
+ * Legend position is 'top' at every breakpoint: a top legend reads as a key to
73
+ * the chart before the eye reaches the plot, and it keeps the plotting area
74
+ * full-width instead of surrendering a right-hand column. `legend.position`
75
+ * still overrides it per spec.
71
76
  *
72
77
  * Height constraints further reduce chrome and legend when container is short.
73
78
  */
package/dist/index.js CHANGED
@@ -1277,7 +1277,7 @@ function getWidthStrategy(breakpoint) {
1277
1277
  case "full":
1278
1278
  return {
1279
1279
  labelMode: "all",
1280
- legendPosition: "right",
1280
+ legendPosition: "top",
1281
1281
  annotationPosition: "inline",
1282
1282
  axisLabelDensity: "full",
1283
1283
  chromeMode: "full",