chore: Removes hard-coded colors from the plugins - iteration 2 (#20006)

* chore: Removes hard-coded colors from the plugins - iteration 2

* Fixes lint errors
This commit is contained in:
Michael S. Molina
2022-05-12 10:12:17 -03:00
committed by GitHub
parent ca9766c109
commit c4c714fffb
12 changed files with 61 additions and 44 deletions

View File

@@ -83,7 +83,7 @@ export function formatFunnelLabel({
export default function transformProps(
chartProps: EchartsFunnelChartProps,
): FunnelChartTransformedProps {
const { formData, height, hooks, filterState, queriesData, width } =
const { formData, height, hooks, filterState, queriesData, width, theme } =
chartProps;
const data: DataRecord[] = queriesData[0].data || [];
@@ -173,7 +173,7 @@ export default function transformProps(
const defaultLabel = {
formatter,
show: showLabels,
color: '#000000',
color: theme.colors.grayscale.dark2,
};
const series: FunnelSeriesOption[] = [