| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <template>
- <view class="page-box-bg-fff m-t20 r-30 p-b30">
- <view class="p-lr30 p-t30">
- <StatisticsTitle :is_right="false" is_age :genre="0" :leftText="'年龄分部'" :rightText="'同比环比'">
- </StatisticsTitle>
- </view>
- <MixtureChart ref="mixtureChart"></MixtureChart>
- </view>
- </template>
- <script>
- import MixtureChart from "@/common/chart/mixture_chart.vue";
- import StatisticsTitle from "./statistics_title.vue";
- export default {
- name: 'stat-age-chart',
- components: {
- MixtureChart,
- StatisticsTitle
- },
- data() {
- return {
- list: [{
- name: '电力',
- color: '#2B7DFA'
- }, {
- name: '信息传媒',
- color: '#00BF8A'
- }, {
- name: '互联网',
- color: '#ED9A2C'
- }, ]
- };
- },
- methods: {
- setData(data){
- console.log(data)
- this.$refs.mixtureChart.setServerData(data)
- }
- },
- }
- </script>
- <style lang="scss" scoped>
- </style>
|