BrandSaas.vue 1.04 KB
<!--
 * @Description: 
 * @Author: huyue
 * @Date: 2024-01-25 16:52:03
 * @LastEditors: huyue
 * @LastEditTime: 2024-01-26 21:00:45
-->
<template>
  <div class="brand">
    <div class="title title-icon">
      <span class="icon-title"></span>
      <span class="title-bg">品牌分布</span>
    </div>
    <div class="container">
      <BarChart domId="brandChart" :rotate="30" :analysisList="brandList" :colorList="colorList"></BarChart>
    </div>
  </div>
</template>
<script>
import BarChart from './BarChart.vue'
export default {
  name: 'BrandSaas',
  components: {
    BarChart
  },
  data() {
    return {
      colorList: ['#01A4F9', '#36cbfa', '#6DF5F9']
    }
  },
  props: {
    brandList: {
      type: Array,
      default: () => []
    }
  }
}
</script>
<style scoped lang="scss">
.brand {
  width: 15.83vw;
  .title-icon {
    font-weight: 500;
    font-size: 10px;
    color: #ffffff;
    // .title-bg {
    //   background-image: linear-gradient(90deg, #003f57 0%, #111056 54%, #071735 100%);
    //   padding-left: 0.83vw;
    // }
  }
}
</style>