Skip to content

Commit 3c62ded

Browse files
Update size ratios and add condition for legacy charts
1 parent dae7ada commit 3c62ded

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/plugins/vis_types/pie/public/editor/components/pie.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ const PieOptions = (props: PieOptionsProps) => {
129129
value={stateParams.isDonut}
130130
setValue={setValue}
131131
/>
132-
{stateParams.isDonut && (
132+
{props.showElasticChartsOptions && stateParams.isDonut && (
133133
<EuiFormRow label={emptySizeRatioLabel} fullWidth>
134134
<EuiButtonGroup
135135
isFullWidth

src/plugins/vis_types/pie/public/editor/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
export enum EMPTY_SIZE_RATIOS {
1010
SMALL = 0.2,
1111
MEDIUM = 0.3,
12-
LARGE = 0.5,
12+
LARGE = 0.7,
1313
}

x-pack/plugins/lens/public/pie_visualization/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ export const DEFAULT_PERCENT_DECIMALS = 2;
1010
export enum EMPTY_SIZE_RATIOS {
1111
SMALL = 0.2,
1212
MEDIUM = 0.3,
13-
LARGE = 0.5,
13+
LARGE = 0.7,
1414
}

0 commit comments

Comments
 (0)