Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
paleface001 committed Nov 20, 2019
1 parent 61f6de1 commit 328d687
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/plots/liquid/layer.ts
Expand Up @@ -27,7 +27,7 @@ const PLOT_GEOM_MAP = {
};

export interface LiquidViewConfig extends ViewConfig {
statictic?: string;
statistic?: string;
min?: number;
max?: number;
value?: number;
Expand All @@ -44,9 +44,9 @@ export default class LiquidLayer extends ViewLayer<LiquidLayerConfig> {
public type: string = 'liquid';

public init() {
const { value, statictic = 'normal' } = this.options;
const { value, statistic = 'normal' } = this.options;
const { min = 0, max = 1, format = (d) => `${d}` } = this.options;
const valueText = this.valueText(statictic, value, format, min, max);
const valueText = this.valueText(statistic, value, format, min, max);
const styleMix = this.getStyleMix(valueText);
this.options.styleMix = styleMix;
this.options.data = [{ value: typeof value === 'number' && valueText !== '--' ? value : 0 }];
Expand Down

0 comments on commit 328d687

Please sign in to comment.