@opendata-ai/openchart-core 7.5.0 → 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/dist/index.d.ts CHANGED
@@ -297,6 +297,14 @@ interface MarkDef {
297
297
  tooltip?: boolean | null;
298
298
  /** Clip marks to the chart area. */
299
299
  clip?: boolean;
300
+ /**
301
+ * Overlay a least-squares regression line on scatter (point) marks.
302
+ * Defaults to true. Set `mark: { type: 'point', trendline: false }` to
303
+ * suppress it when the chart already carries its own reference line (e.g. a
304
+ * manual x=y diagonal in a separate layer), which would otherwise produce
305
+ * two competing diagonals.
306
+ */
307
+ trendline?: boolean;
300
308
  }
301
309
  /** Data field type, following Vega-Lite conventions. */
302
310
  type FieldType = 'quantitative' | 'temporal' | 'nominal' | 'ordinal';