Skip to content

Commit

Permalink
Adds examples
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-s-molina committed Jun 24, 2024
1 parent d14da22 commit 85a22f2
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 9 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Empty file.
25 changes: 25 additions & 0 deletions superset/examples/configs/charts/Featured Charts/Sankey.yaml
Original file line number Diff line number Diff line change
@@ -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
37 changes: 31 additions & 6 deletions superset/examples/configs/dashboards/Featured_Charts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ position:
parents:
- ROOT_ID
- GRID_ID
- ROW-Jq9auQfs6-
- ROW-3XARWMYOfz
type: CHART
CHART-3tEC_8e-uS:
children: []
Expand Down Expand Up @@ -147,7 +147,7 @@ position:
parents:
- ROOT_ID
- GRID_ID
- ROW-3XARWMYOfz
- ROW-ux6j1ePT8I
type: CHART
CHART-EpsTnvUMuW:
children: []
Expand Down Expand Up @@ -273,7 +273,7 @@ position:
parents:
- ROOT_ID
- GRID_ID
- ROW-ux6j1ePT8I
- ROW-we3i1eOT75
type: CHART
CHART-gfrGP3BD76:
children: []
Expand All @@ -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
Expand Down Expand Up @@ -370,6 +384,7 @@ position:
- ROW-Jq9auQfs6-
- ROW-3XARWMYOfz
- ROW-ux6j1ePT8I
- ROW-we3i1eOT75
id: GRID_ID
parents:
- ROOT_ID
Expand All @@ -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
Expand All @@ -400,7 +415,7 @@ position:
children:
- CHART-qZh51tuuRH
- CHART-j2o9aZo4HY
- CHART-33vjmwrGX1
- CHART-Yi0u5d9otw
id: ROW-Jq9auQfs6-
meta:
background: BACKGROUND_TRANSPARENT
Expand Down Expand Up @@ -470,16 +485,26 @@ position:
type: ROW
ROW-ux6j1ePT8I:
children:
- CHART-DqaJJ8Fse6
- CHART-XwFZukVv8E
- CHART-KE7lk61Tbt
- CHART-aAhaxRYu_t
id: ROW-ux6j1ePT8I
meta:
background: BACKGROUND_TRANSPARENT
parents:
- 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
Expand Down

0 comments on commit 85a22f2

Please sign in to comment.