@opendata-ai/openchart-core 7.4.1 → 7.6.0

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opendata-ai/openchart-core",
3
- "version": "7.4.1",
3
+ "version": "7.6.0",
4
4
  "description": "Types, theme, colors, accessibility, and utilities for openchart",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Riley Hilliard",
package/src/types/spec.ts CHANGED
@@ -191,6 +191,14 @@ export interface MarkDef {
191
191
  tooltip?: boolean | null;
192
192
  /** Clip marks to the chart area. */
193
193
  clip?: boolean;
194
+ /**
195
+ * Overlay a least-squares regression line on scatter (point) marks.
196
+ * Defaults to true. Set `mark: { type: 'point', trendline: false }` to
197
+ * suppress it when the chart already carries its own reference line (e.g. a
198
+ * manual x=y diagonal in a separate layer), which would otherwise produce
199
+ * two competing diagonals.
200
+ */
201
+ trendline?: boolean;
194
202
  }
195
203
 
196
204
  // ---------------------------------------------------------------------------