Skip to content

Commit

Permalink
Removed partition from Charts theme config
Browse files Browse the repository at this point in the history
- use `theme.partition` instead
  • Loading branch information
cee-chen committed May 4, 2022
1 parent 8a7babb commit 0b09e59
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions src/themes/charts/themes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,7 @@
* Side Public License, v 1.
*/

import {
PartialTheme,
LineAnnotationStyle,
RecursivePartial,
PartitionConfig,
} from '@elastic/charts';
import { PartialTheme, LineAnnotationStyle } from '@elastic/charts';

import { euiPaletteColorBlind } from '../../services/color/eui_palettes';
import { DEFAULT_VISUALIZATION_COLOR } from '../../services/color/visualization_colors';
Expand All @@ -27,8 +22,6 @@ const fontFamily = `'Inter', 'Inter UI', -apple-system, BlinkMacSystemFont,
export interface EuiChartThemeType {
lineAnnotation: LineAnnotationStyle;
theme: PartialTheme;
/** DEPRECATED: Use `theme.partition` config instead */
partition: RecursivePartial<PartitionConfig>;
}

function createTheme(colors: any): EuiChartThemeType {
Expand All @@ -46,25 +39,6 @@ function createTheme(colors: any): EuiChartThemeType {
padding: 0,
},
},
partition: {
fontFamily: fontFamily,
minFontSize: 8,
maxFontSize: 16,
fillLabel: {
valueFont: {
fontWeight: 700,
},
},
linkLabel: {
maxCount: 5,
fontSize: 11,
textColor: colors.euiTextColor.rgba,
},
outerSizeRatio: 1,
circlePadding: 4,
sectorLineStroke: colors.euiColorEmptyShade.rgba,
sectorLineWidth: 1.5,
},
theme: {
background: {
color: colors.euiColorEmptyShade.rgba,
Expand Down

0 comments on commit 0b09e59

Please sign in to comment.