mirror of
https://github.com/apache/superset.git
synced 2026-04-27 12:05:24 +00:00
Add ChartPlugin and metadata for nvd3 and BigNumber vis (#6085)
* add nvd3 thumbnails * add ChartPlugin and metadata files * add BigNumber thumbnails * Add bignumber ChartPlugin
This commit is contained in:
committed by
Chris Williams
parent
1d2b1aa465
commit
8e88d0233a
@@ -0,0 +1,20 @@
|
||||
import ChartPlugin from '../core/models/ChartPlugin';
|
||||
import ChartMetadata from '../core/models/ChartMetadata';
|
||||
import transformProps from '../BigNumber/transformProps';
|
||||
import thumbnail from './images/thumbnail.png';
|
||||
|
||||
const metadata = new ChartMetadata({
|
||||
name: 'Big Number',
|
||||
description: '',
|
||||
thumbnail,
|
||||
});
|
||||
|
||||
export default class BigNumberTotalChartPlugin extends ChartPlugin {
|
||||
constructor() {
|
||||
super({
|
||||
metadata,
|
||||
transformProps,
|
||||
loadChart: () => import('../BigNumber/BigNumber.jsx'),
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user