import * as echarts from 'echarts/core'
import { GridComponent } from 'echarts/components'
import { ScatterChart } from 'echarts/charts'
import { UniversalTransition } from 'echarts/features'
import { CanvasRenderer } from 'echarts/renderers'
import { scatter } from '@opentiny/vue-renderless/chart-scatter/index'
import Core from '@opentiny/vue-chart-core'
import { $prefix, defineComponent } from '@opentiny/vue-common'

echarts.use([GridComponent, ScatterChart, UniversalTransition, CanvasRenderer])

export default defineComponent({
  ...Core,
  ...{
    name: $prefix + 'ChartScatter',
    data() {
      this.chartHandler = scatter
      return {}
    }
  }
})
