@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/dist/index.d.ts +8 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/types/spec.ts +8 -0
package/package.json
CHANGED
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
|
// ---------------------------------------------------------------------------
|