<template>
  <div id="reseChart">
      <div class="content">
        <div class="left">
          <div class="number">20</div>
          <div>事件总数</div>
        </div>
        <div class="right">
          <dv-active-ring-chart class="chart" :config="config1" />
          <Label-Tag :config="labelConfig" />
        </div>
      </div>
  </div>
</template>

<script>
import LabelTag from './LabelTag'
export default {
  components:{
    LabelTag
  },
  name: 'RightChart2',
  data () {
    return {
      labelConfig: {
        data: ['未处理', '已处理',]
      },
      config1: {
        data: [
          {
            name: '未处理',
            value: 156
          },
          {
            name: '已处理',
            value: 415
          }
        ],
        color: ['#00baff', '#3de7c9'],
        radius: '65%',
        activeRadius: '70%',
        lineWidth: 10,
        style:{
          fontSize:10
        }
      },

    }
  }
}
</script>

<style lang="less" >
#reseChart {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  .content{
    position: absolute;
    display: flex;
    width:100%;
    top: .4rem;
    bottom: 0;
  }
  .left {
    width: 30%;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    .number {
      font-size: 34px;
      color: #096dd9;
      font-weight: bold;
      margin-bottom: 30px;
    }
  }

  .right {
    width: 70%;
    height: calc(~"100% - 30px");
    box-sizing: border-box;
  }
  .chart{
    height:100%;
    .active-ring-name {
      font-size: 14px !important;
    }
  }
}
</style>
