How to use the @swimlane/ngx-charts.ColorHelper function in @swimlane/ngx-charts

To help you get started, we’ve selected a few @swimlane/ngx-charts examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Hygieia / UI / src / app / shared / charts / line-and-bar-chart / line-and-bar-chart.component.ts View on Github external
setColors(): void {
    let domain;
    if (this.schemeType === 'ordinal') {
      domain = this.xDomain;
    } else {
      domain = this.yDomain;
    }
    this.colors = new ColorHelper(this.scheme, this.schemeType, domain, this.customColors);
    this.colorsLine = new ColorHelper(this.colorSchemeLine, this.schemeType, domain, this.customColors);
  }
github alice-si / etheroscope / frontend / src / app / explorer / custom-graph / custom-graph.component.ts View on Github external
setColors(): void {
    let domain;
    if (this.schemeType === 'ordinal') {
      domain = this.seriesDomain;
    } else {
      domain = this.yDomain;
    }

    this.colors = new ColorHelper(this.scheme, this.schemeType, domain, this.customColors);
  }
github cloudfoundry / stratos / src / frontend / packages / cf-autoscaler / src / shared / list-types / app-autoscaler-metric-chart / app-autoscaler-metric-chart-card / combo-chart / combo-chart.component.ts View on Github external
setColors(): void {
    let domain;
    if (this.schemeType === 'ordinal') {
      domain = this.xDomain;
    } else {
      domain = this.yDomain;
    }
    this.colors = new ColorHelper(this.scheme, this.schemeType, domain, this.customColors);
    this.colorsLine = new ColorHelper(this.colorSchemeLine, this.schemeType, domain, this.customColors);
    this.colorsExtra = new ColorHelper(this.scheme, this.schemeType, domain, this.customColors);
  }
github swimlane / ngx-graph / projects / swimlane / ngx-graph / src / lib / graph / graph.component.ts View on Github external
setColors(): void {
    this.colors = new ColorHelper(this.scheme, 'ordinal', this.seriesDomain, this.customColors);
  }
github cloudfoundry / stratos / src / frontend / packages / core / src / shared / components / ring-chart / ring-chart.component.ts View on Github external
setColors(): void {
    this.colors = new ColorHelper(this.scheme, 'ordinal', this.domain, []);
  }
github cloudfoundry / stratos / src / frontend / packages / cf-autoscaler / src / shared / list-types / app-autoscaler-metric-chart / app-autoscaler-metric-chart-card / combo-chart / combo-chart.component.ts View on Github external
setColors(): void {
    let domain;
    if (this.schemeType === 'ordinal') {
      domain = this.xDomain;
    } else {
      domain = this.yDomain;
    }
    this.colors = new ColorHelper(this.scheme, this.schemeType, domain, this.customColors);
    this.colorsLine = new ColorHelper(this.colorSchemeLine, this.schemeType, domain, this.customColors);
    this.colorsExtra = new ColorHelper(this.scheme, this.schemeType, domain, this.customColors);
  }