<template>
  <div class="question-type">
    <div class="title">{{ title }}</div>
    <div class="content">
      <JProgressChart :seriesData="seriesData" :yData="yData" />
    </div>
  </div>
</template>

<script>
import JProgressChart from '../jChart/bar/JProgressChart.vue'
export default {
  components: { JProgressChart },
  props: {
    title: {
      type: String,
      default: 'default title'
    }
  },
  data() {
    return {
      yData: [
        '未分类',
        '临边防护',
        '洞口防护',
        '悬挑式脚手架',
        '被电箱与开关箱',
        '扣件式钢管脚手架',
        '现场防火',
        '材料管理',
        '施工方案'
      ].reverse(),
      seriesData: [100, 235, 232, 532, 112, 532, 449, 269, 998]
    }
  }
}
</script>

<style lang="less" scoped>
.question-type {
  width: 100%;
  height: 100%;
  border: 1px solid #0081c3;
  .title {
    padding-left: 6px;
    height: 30px;
    line-height: 30px;
    font-size: 18px;
    color: #6ee4f0;
  }
  .content {
    height: calc(100% - 30px);
  }
}
</style>
