superset/superset-frontend/temporary_superset_ui/superset-ui/plugins/superset-ui-plugins/packages/superset-ui-legacy-plugin-chart-sankey-loop
Christine Chambers 080cf172d4 v0.10.16
2021-11-26 11:45:31 +08:00
..
src feat: add sankey chart with loops (#77) 2021-11-26 11:45:31 +08:00
package.json v0.10.16 2021-11-26 11:45:31 +08:00
README.md feat: add sankey chart with loops (#77) 2021-11-26 11:45:31 +08:00

@superset-ui/legacy-plugin-chart-sankey-loop

Version David (path)

This plugin provides Sankey Diagram with loops for Superset.

Usage

Configure key, which can be any string, and register the plugin. This key will be used to lookup this chart throughout the app.

import SankeyLoopChartPlugin from '@superset-ui/legacy-plugin-chart-sankey-loop';

new SankeyLoopChartPlugin()
  .configure({ key: 'sankey' })
  .register();

Then use it via SuperChart. See storybook for more details.

<SuperChart
  chartType="sankey-loop"
  chartProps={{
    width: 600,
    height: 600,
    formData: {...},
    payload: {
      data: {...},
    },
  }}
/>