-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added pointsRadius, showPoints and lineWidth. * Added tests. Co-authored-by: Kibana Machine <[email protected]>
- Loading branch information
1 parent
1c2eb9f
commit 24cbb32
Showing
13 changed files
with
313 additions
and
59 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
.../expression_xy/common/expression_functions/__snapshots__/extended_data_layer.test.ts.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
24 changes: 24 additions & 0 deletions
24
...ns/chart_expressions/expression_xy/common/expression_functions/reference_line_layer_fn.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,24 @@ | ||
/* | ||
* 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 { validateAccessor } from '@kbn/visualizations-plugin/common/utils'; | ||
import { LayerTypes, REFERENCE_LINE_LAYER } from '../constants'; | ||
import { ReferenceLineLayerFn } from '../types'; | ||
|
||
export const referenceLineLayerFn: ReferenceLineLayerFn['fn'] = async (input, args, handlers) => { | ||
const table = args.table ?? input; | ||
const accessors = args.accessors ?? []; | ||
accessors.forEach((accessor) => validateAccessor(accessor, table.columns)); | ||
|
||
return { | ||
type: REFERENCE_LINE_LAYER, | ||
...args, | ||
layerType: LayerTypes.REFERENCELINE, | ||
table: args.table ?? input, | ||
}; | ||
}; |
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
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
Oops, something went wrong.