ui: remove broken sank tooltip row
This commit is contained in:
parent
11824d2993
commit
2465029a6c
2 changed files with 2 additions and 9 deletions
|
|
@ -172,7 +172,7 @@ const EChartsSankey: React.FC<Props> = (props) => {
|
|||
params.name.slice(-(maxLen / 2 - 2))
|
||||
: params.name;
|
||||
const nodeType = params.data.type;
|
||||
|
||||
|
||||
const icon = getIcon(nodeType)
|
||||
return (
|
||||
`${icon}{header|${safeName}}\n` +
|
||||
|
|
|
|||
|
|
@ -4,19 +4,12 @@ export function sankeyTooltip(echartNodes: any[], nodeValues: number[]) {
|
|||
if ('source' in params.data && 'target' in params.data) {
|
||||
const sourceName = echartNodes[params.data.source].name;
|
||||
const targetName = echartNodes[params.data.target].name;
|
||||
const sourceValue = nodeValues[params.data.source];
|
||||
return `
|
||||
<div class="flex gap-2 w-fit px-2 bg-white items-center rounded-xl">
|
||||
<div class="flex flex-col">
|
||||
<div class="flex flex-col text-sm">
|
||||
<div class="font-semibold">
|
||||
<span class="text-base" style="color:#394eff">←</span> ${sourceName}
|
||||
</div>
|
||||
<div class="text-black">
|
||||
${sourceValue} <span class="text-disabled-text">Sessions</span>
|
||||
</div>
|
||||
<div class="font-semibold mt-2">
|
||||
<span class="text-base" style="color:#394eff">→</span> ${targetName}
|
||||
${sourceName} <span class="text-base" style="color:#394eff">→</span> ${targetName}
|
||||
</div>
|
||||
<div class="flex items-baseline gap-2 text-black">
|
||||
<span>${params.data.value} ( ${params.data.percentage.toFixed(2)}% )</span>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue