Skip to content

Commit 6f542f3

Browse files
committed
build: update @elastic/charts to v18.1.0
1 parent 2d44870 commit 6f542f3

32 files changed

Lines changed: 61 additions & 65 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
"@babel/core": "^7.5.5",
118118
"@babel/register": "^7.7.0",
119119
"@elastic/apm-rum": "^4.6.0",
120-
"@elastic/charts": "^17.1.1",
120+
"@elastic/charts": "^18.1.0",
121121
"@elastic/datemath": "5.0.2",
122122
"@elastic/ems-client": "7.7.0",
123123
"@elastic/eui": "20.0.2",

packages/kbn-ui-shared-deps/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"kbn:watch": "node scripts/build --watch"
1010
},
1111
"devDependencies": {
12-
"@elastic/charts": "^17.1.1",
12+
"@elastic/charts": "^18.1.0",
1313
"abortcontroller-polyfill": "^1.4.0",
1414
"@elastic/eui": "20.0.2",
1515
"@kbn/babel-preset": "1.0.0",

src/legacy/core_plugins/vis_type_timeseries/public/visualizations/views/timeseries/decorators/__snapshots__/area_decorator.test.js.snap

Lines changed: 1 addition & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/legacy/core_plugins/vis_type_timeseries/public/visualizations/views/timeseries/decorators/__snapshots__/bar_decorator.test.js.snap

Lines changed: 1 addition & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/legacy/core_plugins/vis_type_timeseries/public/visualizations/views/timeseries/decorators/area_decorator.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,14 @@ export function AreaSeriesDecorator({
4343
}) {
4444
const id = seriesId;
4545
const groupId = seriesGroupId;
46-
const customSeriesColors = [color];
4746
const areaSeriesStyle = getAreaStyles({ points, lines, color });
4847

4948
const seriesSettings = {
5049
id,
5150
name,
5251
groupId,
5352
data,
54-
customSeriesColors,
53+
color,
5554
hideInLegend,
5655
xAccessor: X_ACCESSOR_INDEX,
5756
yAccessors: Y_ACCESSOR_INDEXES,

src/legacy/core_plugins/vis_type_timeseries/public/visualizations/views/timeseries/decorators/bar_decorator.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,14 @@ export function BarSeriesDecorator({
4242
}) {
4343
const id = seriesId;
4444
const groupId = seriesGroupId;
45-
const customSeriesColors = [color];
4645
const barSeriesStyle = getBarStyles(bars, color);
4746

4847
const seriesSettings = {
4948
id,
5049
name,
5150
groupId,
5251
data,
53-
customSeriesColors,
52+
color,
5453
hideInLegend,
5554
xAccessor: X_ACCESSOR_INDEX,
5655
yAccessors: Y_ACCESSOR_INDEXES,

src/legacy/core_plugins/vis_type_timeseries/public/visualizations/views/timeseries/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ export const TimeSeries = ({
9999
<Chart ref={chartRef} renderer="canvas" className={classes}>
100100
<Settings
101101
showLegend={legend}
102+
showLegendExtra={true}
102103
legendPosition={legendPosition}
103104
onBrushEnd={onBrush}
104105
animateData={false}

x-pack/legacy/plugins/lens/public/xy_visualization/__snapshots__/xy_expression.test.tsx.snap

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/legacy/plugins/lens/public/xy_visualization/xy_expression.test.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,15 @@
44
* you may not use this file except in compliance with the Elastic License.
55
*/
66

7-
import { Axis } from '@elastic/charts';
8-
import { AreaSeries, BarSeries, Position, LineSeries, Settings, ScaleType } from '@elastic/charts';
7+
import {
8+
AreaSeries,
9+
Axis,
10+
BarSeries,
11+
Position,
12+
LineSeries,
13+
Settings,
14+
ScaleType,
15+
} from '@elastic/charts';
916
import { xyChart, XYChart } from './xy_expression';
1017
import { LensMultiTable } from '../types';
1118
import React from 'react';

x-pack/legacy/plugins/lens/public/xy_visualization/xy_expression.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export function XYChart({ data, args, formatFactory, timeZone, chartTheme }: XYC
191191
<Settings
192192
showLegend={legend.isVisible ? chartHasMoreThanOneSeries : legend.isVisible}
193193
legendPosition={legend.position}
194-
showLegendDisplayValue={false}
194+
showLegendExtra={false}
195195
theme={chartTheme}
196196
rotation={shouldRotate ? 90 : 0}
197197
xDomain={

0 commit comments

Comments
 (0)