<template>
  <Charts :width="width" :height="height" :echarts-options="options" :loading="loading"></Charts>
</template>

<script lang="ts">
import { defineComponent } from 'vue';
import Charts from '../../../Charts.vue';
import { basicLineProps } from "./props";
import { useChartOptions } from "../../../hooks/useChartOptions";

export default defineComponent({
  name: "DBasicLine",
  components: { Charts },
  props: basicLineProps,
  setup( props ) {
    const { options, loading } = useChartOptions(props);

    return {
      options,
      loading
    }
  }
})
</script>

<style scoped></style>
