import './style/index.less';
import ChartTypeRadioGroup from '@/components/ChartTypeRadioGroup.vue';
import CommonChart from './components/CommonChart.vue';
import SimpleChart from './components/simple-chart/SimpleChart.vue';

const components = {
  CommonChart,
  ChartTypeRadioGroup,
  SimpleChart,
};

const install = (Vue, opts = {}) => {
  Object.keys(components).forEach(componentKey => {
    Vue.component(componentKey, components[componentKey]);
  });
};

export { SimpleChart, CommonChart, ChartTypeRadioGroup };

export default {
  install,
};
