<template>
  <techy-box style="width: 100%; height: calc(100% - 36px);">
    <!-- <div :id="id" ref="techy-line-chart" class="techy-chart" /> -->

    <new-bar
      chart-name="realtime-cost-production"
      :name-list="['A', 'B', 'C', 'D', 'E', 'F']"
      :data-list="[
        {
          topColor: 'rgba(59, 76, 118, 0.2)',
          bottomColor: '#49FBD6',
          name: '产量',
          data: [64, 91, 55, 65, 37, 77]
        },
        {
          topColor: 'rgba(59, 76, 118, 0.2)',
          bottomColor: '#31A2FF',
          name: '能耗',
          data: [32, 65, 65, 54, 37, 77]
        }
      ]"
    />
  </techy-box>
</template>

<script>
import TechyBox from './TechyBox.vue'
import newBar from './newBar.vue'

export default {
  name: 'RealtimeProductionHorizontalBarChart',
  components: { TechyBox, newBar },
  props: {},
  data() {
    return {}
  }
}
</script>
<style scoped>
.techy-chart {
  height: 100%;
  width: 100%;
}

.techy-chart >>> div {
  width: 100% !important;
}
</style>
