<template>
  <div ref="chart" :style="chartStyle">ChartBar</div>
</template>

<script>
export default {
  name: 'ChartBar',
  props: {
    data: {
      type: Array,
      required: true,
      default: () => {
        return []
      }
    },
    chartSchema: {
      type: Object,
      required: true,
      default: () => {
        return {}
      }
    },
    chartStyle: {
      type: Object,
      require: false,
      default: () => {
        return {
          height: '200px'
        }
      }
    }
  },
  created() {
    console.log(this.data)
  }
}
</script>

<style lang="scss" scoped>

</style>
