mirror of
https://github.com/apache/superset.git
synced 2026-04-18 07:35:09 +00:00
feat: Adds Sunburst chart migration logic (#25343)
This commit is contained in:
committed by
GitHub
parent
9bd97ef4f2
commit
0c083bdc1a
@@ -32,7 +32,7 @@ import {
|
||||
} from '@superset-ui/core';
|
||||
import { EChartsCoreOption } from 'echarts';
|
||||
import { CallbackDataParams } from 'echarts/types/src/util/types';
|
||||
import { OpacityEnum } from '../constants';
|
||||
import { NULL_STRING, OpacityEnum } from '../constants';
|
||||
import { defaultGrid } from '../defaults';
|
||||
import { Refs } from '../types';
|
||||
import { formatSeriesName, getColtypesMapping } from '../utils/series';
|
||||
@@ -138,7 +138,10 @@ export function formatTooltip({
|
||||
color: ${theme.colors.grayscale.base}"
|
||||
>`,
|
||||
`<div style="font-weight: ${theme.typography.weights.bold}">
|
||||
${node.name}
|
||||
${(node.name || NULL_STRING)
|
||||
.toString()
|
||||
.replaceAll('<', '<')
|
||||
.replaceAll('>', '>')}
|
||||
</div>`,
|
||||
`<div">
|
||||
${absolutePercentage} of total
|
||||
|
||||
Reference in New Issue
Block a user