import type { ChartModelBase } from "../chart-model/chart-model-base.js";

/** Adds support for matching colors between the chart and its data source. */
export abstract class WithColorMatch extends ChartModelBase {
  /**
   * Whether the chart should attempt to match the data source's colors.
   *
   * `true`: Attempt to match the data source's colors.
   * `false`: Use the colors defined in the config.
   */
  accessor colorMatch: boolean;
}