@opendata-ai/openchart-engine 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.js CHANGED
@@ -7523,9 +7523,11 @@ function computeTrendLine(marks) {
7523
7523
  var scatterRenderer = (spec, scales, chartArea, strategy, _theme) => {
7524
7524
  const pointMarks = computeScatterMarks(spec, scales, chartArea, strategy);
7525
7525
  const marks = [...pointMarks];
7526
- const trendLine = computeTrendLine(pointMarks);
7527
- if (trendLine) {
7528
- marks.unshift(trendLine);
7526
+ if (spec.markDef?.trendline !== false) {
7527
+ const trendLine = computeTrendLine(pointMarks);
7528
+ if (trendLine) {
7529
+ marks.unshift(trendLine);
7530
+ }
7529
7531
  }
7530
7532
  return marks;
7531
7533
  };