chore: Adds theme object to chart properties (#19951)

This commit is contained in:
Michael S. Molina
2022-05-04 09:55:22 -03:00
committed by GitHub
parent 5dd3ea154b
commit e9032e95ec
19 changed files with 77 additions and 26 deletions

View File

@@ -20,6 +20,7 @@ import {
ChartProps,
getNumberFormatter,
SqlaFormData,
supersetTheme,
} from '@superset-ui/core';
import transformProps, { formatPieLabel } from '../../src/Pie/transformProps';
import { EchartsPieChartProps, EchartsPieLabelType } from '../../src/Pie/types';
@@ -45,6 +46,7 @@ describe('Pie transformProps', () => {
],
},
],
theme: supersetTheme,
});
it('should transform chart props for viz', () => {