index.js 849 Bytes
Newer Older
1
import numeral from 'numeral';
2
import './g2';
3 4 5 6 7 8 9 10 11 12
import ChartCard from './ChartCard';
import Bar from './Bar';
import Pie from './Pie';
import Radar from './Radar';
import Gauge from './Gauge';
import MiniArea from './MiniArea';
import MiniBar from './MiniBar';
import MiniProgress from './MiniProgress';
import Field from './Field';
import WaterWave from './WaterWave';
niko's avatar
niko committed
13 14
import TagCloud from './TagCloud';
import TimelineChart from './TimelineChart';
15 16 17

const yuan = val => `¥ ${numeral(val).format('0,0')}`;

ddcat1115's avatar
ddcat1115 committed
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
const Charts = {
  yuan,
  Bar,
  Pie,
  Gauge,
  Radar,
  MiniBar,
  MiniArea,
  MiniProgress,
  ChartCard,
  Field,
  WaterWave,
  TagCloud,
  TimelineChart,
};

34
export {
ddcat1115's avatar
ddcat1115 committed
35
  Charts as default,
36 37 38 39 40 41 42 43 44 45 46
  yuan,
  Bar,
  Pie,
  Gauge,
  Radar,
  MiniBar,
  MiniArea,
  MiniProgress,
  ChartCard,
  Field,
  WaterWave,
niko's avatar
niko committed
47 48
  TagCloud,
  TimelineChart,
49
};