forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[XY] Add
axes
support (elastic#129476)
* Added `axes` support * Refactoring auto-assignment logic * Fixed reference line position * Fixed bug with auto-assignment. * Fixed snapshots * Fixed behavior of the horizontal reference lines. Co-authored-by: Yaroslav Kuznietsov <[email protected]> Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Marta Bondyra <[email protected]>
- Loading branch information
1 parent
ec3e3b2
commit 8fa2608
Showing
81 changed files
with
2,775 additions
and
1,728 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 0 additions & 53 deletions
53
...rt_expressions/expression_xy/common/expression_functions/axis_titles_visibility_config.ts
This file was deleted.
Oops, something went wrong.
72 changes: 72 additions & 0 deletions
72
src/plugins/chart_expressions/expression_xy/common/expression_functions/common_axis_args.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
import { strings } from '../i18n'; | ||
import { XAxisConfigFn, YAxisConfigFn } from '../types'; | ||
import { AXIS_EXTENT_CONFIG } from '../constants'; | ||
|
||
type CommonAxisConfigFn = XAxisConfigFn | YAxisConfigFn; | ||
|
||
export const commonAxisConfigArgs: Omit< | ||
CommonAxisConfigFn['args'], | ||
'scaleType' | 'mode' | 'boundsMargin' | ||
> = { | ||
title: { | ||
types: ['string'], | ||
help: strings.getAxisTitleHelp(), | ||
}, | ||
id: { | ||
types: ['string'], | ||
help: strings.getAxisIdHelp(), | ||
}, | ||
hide: { | ||
types: ['boolean'], | ||
help: strings.getAxisHideHelp(), | ||
}, | ||
labelColor: { | ||
types: ['string'], | ||
help: strings.getAxisLabelColorHelp(), | ||
}, | ||
showOverlappingLabels: { | ||
types: ['boolean'], | ||
help: strings.getAxisShowOverlappingLabelsHelp(), | ||
}, | ||
showDuplicates: { | ||
types: ['boolean'], | ||
help: strings.getAxisShowDuplicatesHelp(), | ||
}, | ||
showGridLines: { | ||
types: ['boolean'], | ||
help: strings.getAxisShowGridLinesHelp(), | ||
default: false, | ||
}, | ||
labelsOrientation: { | ||
types: ['number'], | ||
options: [0, -90, -45], | ||
help: strings.getAxisLabelsOrientationHelp(), | ||
}, | ||
showLabels: { | ||
types: ['boolean'], | ||
help: strings.getAxisShowLabelsHelp(), | ||
default: true, | ||
}, | ||
showTitle: { | ||
types: ['boolean'], | ||
help: strings.getAxisShowTitleHelp(), | ||
default: true, | ||
}, | ||
truncate: { | ||
types: ['number'], | ||
help: strings.getAxisTruncateHelp(), | ||
}, | ||
extent: { | ||
types: [AXIS_EXTENT_CONFIG], | ||
help: strings.getAxisExtentHelp(), | ||
default: `{${AXIS_EXTENT_CONFIG}}`, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.