Custom visualization plugin for Apache Superset
Project description
customchart
This is the Custom Chart Superset Chart Plugin.
Usage
To build the plugin, run the following commands:
npm ci
npm run build
Alternatively, to run the plugin in development mode (=rebuilding whenever changes are made), start the dev server with the following command:
npm run dev
To add the package to Superset, go to the superset-frontend
subdirectory in your Superset source folder (assuming both the customchart
plugin and superset
repos are in the same root directory) and run
npm i -S ../../customchart
After this edit the superset-frontend/src/visualizations/presets/MainPreset.js
and make the following changes:
import { Customchart } from 'customchart';
to import the plugin and later add the following to the array that's passed to the plugins
property:
new Customchart().configure({ key: 'customchart' }),
After that the plugin should show up when you run Superset, e.g. the development server:
npm run dev-server
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for superset_custom_visual-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78d6809b1373b3e3c842aaf33a54f232bf77ec3cd6abc843f724bd4160994fbd |
|
MD5 | 4093ca1c63cd1cb8482d212a9b2a2273 |
|
BLAKE2b-256 | 7861ec76ca78e54ff4befd798b0498620652317a7ce7fb2c9c7bbc4a64ea85ce |
Hashes for superset_custom_visual-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52bc2e6ad2292b313d30f8cb7dade60e483fcac896b894b0b6a70ffd57a490f9 |
|
MD5 | 1dd7fe3222590a8ea149d9f13b02681d |
|
BLAKE2b-256 | 25312a421207bdfaf6f4bb4ae37abf35056932cb33f292c14384f7cc3ec6876d |