mirror of
https://github.com/apache/superset.git
synced 2026-04-17 23:25:05 +00:00
fix(plugin-chart-echarts): tooltip overflow bug (#22218)
Co-authored-by: Ville Brofeldt <ville.brofeldt@apple.com>
This commit is contained in:
@@ -80,7 +80,11 @@ describe('EchartsGraph transformProps', () => {
|
||||
label: { fontWeight: 'bolder' },
|
||||
},
|
||||
symbolSize: 50,
|
||||
tooltip: { formatter: '{b}: {c}' },
|
||||
tooltip: {
|
||||
appendToBody: true,
|
||||
formatter: '{b}: {c}',
|
||||
position: expect.anything(),
|
||||
},
|
||||
value: 6,
|
||||
},
|
||||
{
|
||||
@@ -93,7 +97,11 @@ describe('EchartsGraph transformProps', () => {
|
||||
label: { fontWeight: 'bolder' },
|
||||
},
|
||||
symbolSize: 50,
|
||||
tooltip: { formatter: '{b}: {c}' },
|
||||
tooltip: {
|
||||
appendToBody: true,
|
||||
formatter: '{b}: {c}',
|
||||
position: expect.anything(),
|
||||
},
|
||||
value: 6,
|
||||
},
|
||||
{
|
||||
@@ -106,7 +114,11 @@ describe('EchartsGraph transformProps', () => {
|
||||
label: { fontWeight: 'bolder' },
|
||||
},
|
||||
symbolSize: 10,
|
||||
tooltip: { formatter: '{b}: {c}' },
|
||||
tooltip: {
|
||||
appendToBody: true,
|
||||
formatter: '{b}: {c}',
|
||||
position: expect.anything(),
|
||||
},
|
||||
value: 5,
|
||||
},
|
||||
{
|
||||
@@ -119,7 +131,11 @@ describe('EchartsGraph transformProps', () => {
|
||||
label: { fontWeight: 'bolder' },
|
||||
},
|
||||
symbolSize: 10,
|
||||
tooltip: { formatter: '{b}: {c}' },
|
||||
tooltip: {
|
||||
appendToBody: true,
|
||||
formatter: '{b}: {c}',
|
||||
position: expect.anything(),
|
||||
},
|
||||
value: 5,
|
||||
},
|
||||
],
|
||||
@@ -218,7 +234,11 @@ describe('EchartsGraph transformProps', () => {
|
||||
symbolSize: 10,
|
||||
category: 'category_value_1',
|
||||
select: DEFAULT_GRAPH_SERIES_OPTION.select,
|
||||
tooltip: DEFAULT_GRAPH_SERIES_OPTION.tooltip,
|
||||
tooltip: {
|
||||
appendToBody: true,
|
||||
formatter: '{b}: {c}',
|
||||
position: expect.anything(),
|
||||
},
|
||||
label: { show: true },
|
||||
},
|
||||
{
|
||||
@@ -228,7 +248,11 @@ describe('EchartsGraph transformProps', () => {
|
||||
symbolSize: 10,
|
||||
category: 'category_value_2',
|
||||
select: DEFAULT_GRAPH_SERIES_OPTION.select,
|
||||
tooltip: DEFAULT_GRAPH_SERIES_OPTION.tooltip,
|
||||
tooltip: {
|
||||
appendToBody: true,
|
||||
formatter: '{b}: {c}',
|
||||
position: expect.anything(),
|
||||
},
|
||||
label: { show: true },
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user