mirror of
https://github.com/apache/superset.git
synced 2026-04-20 16:44:46 +00:00
feat: Utility function to render chart tooltips (#27950)
This commit is contained in:
committed by
GitHub
parent
467e612533
commit
b549977f05
@@ -81,11 +81,7 @@ describe('EchartsGraph transformProps', () => {
|
||||
label: { fontWeight: 'bolder' },
|
||||
},
|
||||
symbolSize: 50,
|
||||
tooltip: {
|
||||
appendToBody: true,
|
||||
formatter: '{b}: {c}',
|
||||
position: expect.anything(),
|
||||
},
|
||||
tooltip: expect.anything(),
|
||||
value: 6,
|
||||
},
|
||||
{
|
||||
@@ -99,11 +95,7 @@ describe('EchartsGraph transformProps', () => {
|
||||
label: { fontWeight: 'bolder' },
|
||||
},
|
||||
symbolSize: 50,
|
||||
tooltip: {
|
||||
appendToBody: true,
|
||||
formatter: '{b}: {c}',
|
||||
position: expect.anything(),
|
||||
},
|
||||
tooltip: expect.anything(),
|
||||
value: 6,
|
||||
},
|
||||
{
|
||||
@@ -117,11 +109,7 @@ describe('EchartsGraph transformProps', () => {
|
||||
label: { fontWeight: 'bolder' },
|
||||
},
|
||||
symbolSize: 10,
|
||||
tooltip: {
|
||||
appendToBody: true,
|
||||
formatter: '{b}: {c}',
|
||||
position: expect.anything(),
|
||||
},
|
||||
tooltip: expect.anything(),
|
||||
value: 5,
|
||||
},
|
||||
{
|
||||
@@ -135,11 +123,7 @@ describe('EchartsGraph transformProps', () => {
|
||||
label: { fontWeight: 'bolder' },
|
||||
},
|
||||
symbolSize: 10,
|
||||
tooltip: {
|
||||
appendToBody: true,
|
||||
formatter: '{b}: {c}',
|
||||
position: expect.anything(),
|
||||
},
|
||||
tooltip: expect.anything(),
|
||||
value: 5,
|
||||
},
|
||||
],
|
||||
@@ -239,11 +223,7 @@ describe('EchartsGraph transformProps', () => {
|
||||
symbolSize: 10,
|
||||
category: 'category_value_1',
|
||||
select: DEFAULT_GRAPH_SERIES_OPTION.select,
|
||||
tooltip: {
|
||||
appendToBody: true,
|
||||
formatter: '{b}: {c}',
|
||||
position: expect.anything(),
|
||||
},
|
||||
tooltip: expect.anything(),
|
||||
label: { show: true },
|
||||
},
|
||||
{
|
||||
@@ -254,11 +234,7 @@ describe('EchartsGraph transformProps', () => {
|
||||
symbolSize: 10,
|
||||
category: 'category_value_2',
|
||||
select: DEFAULT_GRAPH_SERIES_OPTION.select,
|
||||
tooltip: {
|
||||
appendToBody: true,
|
||||
formatter: '{b}: {c}',
|
||||
position: expect.anything(),
|
||||
},
|
||||
tooltip: expect.anything(),
|
||||
label: { show: true },
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user