import Chart from './chart'
import ChartXaxis from './chart-xaxis'
import ChartYaxis from './chart-yaxis'
import ChartTooltip from './chart-tooltip'
import ChartGrid from './chart-grid'

Chart.install = (Vue) => {
  Vue.component(Chart.name, Chart)
  Vue.component(ChartXaxis.name, ChartXaxis)
  Vue.component(ChartYaxis.name, ChartYaxis)
  Vue.component(ChartTooltip.name, ChartTooltip)
  Vue.component(ChartGrid.name, ChartGrid)
}

export {
  Chart,
  ChartXaxis,
  ChartYaxis,
  ChartTooltip,
  ChartGrid
}

export default Chart
