Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @superset-ui/legacy-plugin-chart-iframe with all npm packages installed. Try it out:

require("@superset-ui/chart/package.json"); // @superset-ui/chart is a peer dependency. require("@superset-ui/translation/package.json"); // @superset-ui/translation is a peer dependency. require("react/package.json"); // react is a peer dependency. var legacyPluginChartIframe = require("@superset-ui/legacy-plugin-chart-iframe")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@superset-ui/legacy-plugin-chart-iframe v0.13.21

Superset Legacy Chart - Iframe

@superset-ui/legacy-plugin-chart-iframe

Version David (path)

This plugin provides Iframe 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 IframeChartPlugin from '@superset-ui/legacy-plugin-chart-iframe';

new IframeChartPlugin()
  .configure({ key: 'iframe' })
  .register();

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

<SuperChart
  chartType="iframe"
  width={600}
  height={600}
  formData={...}
  queryData={{
    data: {...},
  }}
/>
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free