Skip to content

Commit

Permalink
Fixed types.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuznietsov committed May 4, 2022
1 parent 0226d6c commit b610f14
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ import {
getDataLayers,
Series,
getFormattedTablesByLayers,
validateExtent,
} from '../helpers';
import {
getFilteredLayers,
Expand Down Expand Up @@ -175,8 +174,6 @@ export function XYChart({
return <EmptyPlaceholder className="xyChart__empty" icon={icon} />;
}

const dataLayers: CommonXYDataLayerConfig[] = filteredLayers.filter(isDataLayer);

// use formatting hint of first x axis column to format ticks
const xAxisColumn = dataLayers[0]?.table.columns.find(({ id }) => id === dataLayers[0].xAccessor);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import type { IFieldFormat, SerializedFieldFormat } from '@kbn/field-formats-plugin/common';
import { FormatFactory } from '../types';
import { AxisExtentConfig, CommonXYDataLayerConfig, ExtendedYConfig, YConfig } from '../../common';
import { CommonXYDataLayerConfig, ExtendedYConfig, YConfig } from '../../common';
import { isDataLayer } from './visualization';

export interface Series {
Expand Down

0 comments on commit b610f14

Please sign in to comment.