mirror of
https://github.com/apache/superset.git
synced 2026-05-11 19:05:24 +00:00
echarts theming
This commit is contained in:
@@ -274,7 +274,11 @@ export default function transformProps(
|
||||
} else {
|
||||
linearColorScale(totalSecondaryValue / totalValue);
|
||||
}
|
||||
|
||||
const labelProps = {
|
||||
color: theme.colorText,
|
||||
textBorderColor: theme.colorBgBase,
|
||||
textBorderWidth: 1,
|
||||
};
|
||||
const traverse = (
|
||||
treeNodes: TreeNode[],
|
||||
path: string[],
|
||||
@@ -316,7 +320,7 @@ export default function transformProps(
|
||||
opacity: OpacityEnum.SemiTransparent,
|
||||
},
|
||||
label: {
|
||||
color: `rgba(0, 0, 0, ${OpacityEnum.SemiTransparent})`,
|
||||
...labelProps,
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -356,10 +360,10 @@ export default function transformProps(
|
||||
},
|
||||
},
|
||||
label: {
|
||||
...labelProps,
|
||||
width: (radius * 0.6) / (columns.length || 1),
|
||||
show: showLabels,
|
||||
formatter,
|
||||
color: theme.colors.grayscale.dark2,
|
||||
minAngle: minShowLabelAngle,
|
||||
overflow: 'breakAll',
|
||||
},
|
||||
@@ -381,7 +385,6 @@ export default function transformProps(
|
||||
}
|
||||
: null,
|
||||
};
|
||||
|
||||
return {
|
||||
formData,
|
||||
width,
|
||||
|
||||
Reference in New Issue
Block a user