Skip to content

Commit 93a4a4b

Browse files
committed
add back seperate partition option to be removed later
1 parent b956b5f commit 93a4a4b

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

src/themes/charts/themes.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const fontFamily = `'Inter', 'Inter UI', -apple-system, BlinkMacSystemFont,
2222
export interface EuiChartThemeType {
2323
lineAnnotation: LineAnnotationStyle;
2424
theme: PartialTheme;
25+
partition: PartialTheme['partition'];
2526
}
2627

2728
function createTheme(colors: any): EuiChartThemeType {
@@ -39,6 +40,25 @@ function createTheme(colors: any): EuiChartThemeType {
3940
padding: 0,
4041
},
4142
},
43+
partition: {
44+
fontFamily: fontFamily,
45+
minFontSize: 8,
46+
maxFontSize: 16,
47+
fillLabel: {
48+
valueFont: {
49+
fontWeight: 700,
50+
},
51+
},
52+
linkLabel: {
53+
maxCount: 5,
54+
fontSize: 11,
55+
textColor: colors.euiTextColor.rgba,
56+
},
57+
outerSizeRatio: 1,
58+
circlePadding: 4,
59+
sectorLineStroke: colors.euiColorEmptyShade.rgba,
60+
sectorLineWidth: 1.5,
61+
},
4262
theme: {
4363
background: {
4464
color: colors.euiColorEmptyShade.rgba,

0 commit comments

Comments
 (0)