Skip to content

Commit

Permalink
Add bignumber ChartPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
kristw committed Oct 12, 2018
1 parent dcfd70a commit f4a0512
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import ChartPlugin from '../core/models/ChartPlugin';
import ChartMetadata from '../core/models/ChartMetadata';
import transformProps from './transformProps';
import thumbnail from './images/thumbnail.png';

const metadata = new ChartMetadata({
name: 'Big Number with Trendline',
description: '',
thumbnail,
});

export default class BigNumberChartPlugin extends ChartPlugin {
constructor() {
super({
metadata,
transformProps,
loadChart: () => import('./BigNumber.jsx'),
});
}
}
Original file line number Diff line number Diff line change
@@ -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'),
});
}
}

0 comments on commit f4a0512

Please sign in to comment.