mirror of
https://github.com/apache/superset.git
synced 2026-04-25 02:55:07 +00:00
feat: improve color consistency (save all labels) (#19038)
This commit is contained in:
@@ -20,7 +20,7 @@ import { getLabelFontSize } from './utils';
|
||||
|
||||
export default function transformProps(chartProps) {
|
||||
const { width, height, formData, queriesData } = chartProps;
|
||||
const { colorScheme } = formData;
|
||||
const { colorScheme, sliceId } = formData;
|
||||
|
||||
return {
|
||||
width,
|
||||
@@ -28,5 +28,6 @@ export default function transformProps(chartProps) {
|
||||
data: queriesData[0].data,
|
||||
colorScheme,
|
||||
fontSize: getLabelFontSize(width),
|
||||
sliceId,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user