Skip to content

Commit

Permalink
Fixed types.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuznietsov committed May 26, 2022
1 parent c17cf37 commit 273d280
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export const layeredXyVisFn: LayeredXyVisFn['fn'] = async (data, args, handlers)
args: {
...args,
layers,
showTooltip: args.showTooltip ?? false,
markSizeRatio: hasMarkSizeAccessors && !args.markSizeRatio ? 10 : args.markSizeRatio,
ariaLabel:
args.ariaLabel ??
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ export const xyVisFn: XyVisFn['fn'] = async (data, args, handlers) => {
args: {
...restArgs,
layers,
showTooltip: args.showTooltip ?? false,
markSizeRatio:
dataLayers[0].markSizeAccessor && !args.markSizeRatio ? 10 : args.markSizeRatio,
ariaLabel:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export interface XYArgs extends DataLayerArgs {
splitRowAccessor?: ExpressionValueVisDimension | string;
splitColumnAccessor?: ExpressionValueVisDimension | string;
orderBucketsBySum?: boolean;
showTooltip?: boolean;
showTooltip: boolean;
}

export interface LayeredXYArgs {
Expand Down Expand Up @@ -251,7 +251,7 @@ export interface LayeredXYArgs {
markSizeRatio?: number;
minTimeBarInterval?: string;
orderBucketsBySum?: boolean;
showTooltip?: boolean;
showTooltip: boolean;
}

export interface XYProps {
Expand Down Expand Up @@ -283,7 +283,7 @@ export interface XYProps {
splitRowAccessor?: ExpressionValueVisDimension | string;
splitColumnAccessor?: ExpressionValueVisDimension | string;
orderBucketsBySum?: boolean;
showTooltip?: boolean;
showTooltip: boolean;
}

export interface AnnotationLayerArgs {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2236,6 +2236,7 @@ describe('XYChart component', () => {
yRightTitle: '',
yLeftScale: 'linear',
yRightScale: 'linear',
showTooltip: true,
legend: { type: 'legendConfig', isVisible: false, position: Position.Top },
valueLabels: 'hide',
tickLabelsVisibilitySettings: {
Expand Down Expand Up @@ -2328,6 +2329,7 @@ describe('XYChart component', () => {
yRightTitle: '',
legend: { type: 'legendConfig', isVisible: false, position: Position.Top },
valueLabels: 'hide',
showTooltip: true,
tickLabelsVisibilitySettings: {
type: 'tickLabelsConfig',
x: true,
Expand Down Expand Up @@ -2401,6 +2403,7 @@ describe('XYChart component', () => {
xTitle: '',
yTitle: '',
yRightTitle: '',
showTooltip: true,
legend: { type: 'legendConfig', isVisible: true, position: Position.Top },
valueLabels: 'hide',
tickLabelsVisibilitySettings: {
Expand Down

0 comments on commit 273d280

Please sign in to comment.