swimlane/ngx-charts

View on GitHub
projects/swimlane/ngx-charts/src/lib/common/types/legend.model.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { ScaleType } from './scale-type.enum';

export interface LegendOptions {
  colors: any;
  domain: any[];
  position: LegendPosition;
  title: string;
  scaleType: ScaleType;
}

export enum LegendPosition {
  Right = 'right',
  Below = 'below'
}

export enum LegendType {
  ScaleLegend = 'scaleLegend',
  Legend = 'legend'
}