Adds examples

This commit is contained in:
Michael S. Molina 2024-06-24 15:47:02 -03:00
parent d14da22e75
commit 85a22f27aa
7 changed files with 64 additions and 9 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 KiB

After

Width:  |  Height:  |  Size: 148 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 58 KiB

View File

@ -48,11 +48,16 @@ export default class EchartsSankeyChartPlugin extends ChartPlugin<
metadata: new ChartMetadata({
behaviors: [Behavior.InteractiveChart],
credits: ['https://echarts.apache.org'],
category: t('TODO'),
description: t(`TODO`),
category: t('Flow'),
description: t(
`The Sankey chart visually tracks the movement and transformation of values across
system stages. Nodes represent stages, connected by links depicting value flow. Node
height corresponds to the visualized metric, providing a clear representation of
value distribution and transformation.`,
),
exampleGallery: [{ url: example1 }, { url: example2 }],
name: t('Sankey Chart'),
tags: [],
tags: [t('Directional'), t('Distribution'), t('Flow')],
thumbnail,
}),
transformProps,

View File

@ -0,0 +1,25 @@
slice_name: Sankey
description: null
certified_by: null
certification_details: null
viz_type: sankey_v2
params:
datasource: 22__table
viz_type: sankey_v2
source: product_line
target: deal_size
metric: count
adhoc_filters:
- clause: WHERE
subject: order_date
operator: TEMPORAL_RANGE
comparator: No filter
expressionType: SIMPLE
row_limit: 10000
color_scheme: supersetColors
extra_form_data: {}
dashboards: []
cache_timeout: null
uuid: fead4d46-ecb9-4fd9-8b9c-420629269c02
version: 1.0.0
dataset_uuid: e8623bb9-5e00-f531-506a-19607f5f8005

View File

@ -49,7 +49,7 @@ position:
parents:
- ROOT_ID
- GRID_ID
- ROW-Jq9auQfs6-
- ROW-3XARWMYOfz
type: CHART
CHART-3tEC_8e-uS:
children: []
@ -147,7 +147,7 @@ position:
parents:
- ROOT_ID
- GRID_ID
- ROW-3XARWMYOfz
- ROW-ux6j1ePT8I
type: CHART
CHART-EpsTnvUMuW:
children: []
@ -273,7 +273,7 @@ position:
parents:
- ROOT_ID
- GRID_ID
- ROW-ux6j1ePT8I
- ROW-we3i1eOT75
type: CHART
CHART-gfrGP3BD76:
children: []
@ -289,6 +289,20 @@ position:
- GRID_ID
- ROW-W7YILGiS0-
type: CHART
CHART-Yi0u5d9otw:
children: []
id: CHART-Yi0u5d9otw
meta:
chartId: 359
height: 50
sliceName: Sankey
uuid: fead4d46-ecb9-4fd9-8b9c-420629269c02
width: 4
parents:
- ROOT_ID
- GRID_ID
- ROW-Jq9auQfs6-
type: CHART
CHART-j2o9aZo4HY:
children: []
id: CHART-j2o9aZo4HY
@ -370,6 +384,7 @@ position:
- ROW-Jq9auQfs6-
- ROW-3XARWMYOfz
- ROW-ux6j1ePT8I
- ROW-we3i1eOT75
id: GRID_ID
parents:
- ROOT_ID
@ -386,9 +401,9 @@ position:
type: ROOT
ROW-3XARWMYOfz:
children:
- CHART-33vjmwrGX1
- CHART-3tEC_8e-uS
- CHART-A4qrvR24Ne
- CHART-DqaJJ8Fse6
id: ROW-3XARWMYOfz
meta:
background: BACKGROUND_TRANSPARENT
@ -400,7 +415,7 @@ position:
children:
- CHART-qZh51tuuRH
- CHART-j2o9aZo4HY
- CHART-33vjmwrGX1
- CHART-Yi0u5d9otw
id: ROW-Jq9auQfs6-
meta:
background: BACKGROUND_TRANSPARENT
@ -470,9 +485,9 @@ position:
type: ROW
ROW-ux6j1ePT8I:
children:
- CHART-DqaJJ8Fse6
- CHART-XwFZukVv8E
- CHART-KE7lk61Tbt
- CHART-aAhaxRYu_t
id: ROW-ux6j1ePT8I
meta:
background: BACKGROUND_TRANSPARENT
@ -480,6 +495,16 @@ position:
- ROOT_ID
- GRID_ID
type: ROW
ROW-we3i1eOT75:
children:
- CHART-aAhaxRYu_t
id: ROW-we3i1eOT75
meta:
background: BACKGROUND_TRANSPARENT
parents:
- ROOT_ID
- GRID_ID
type: ROW
metadata:
color_scheme: supersetAndPresetColors
refresh_frequency: 0