echarttu修改

master
Tuzki 2 years ago
parent d87e321258
commit db4b5658a2
  1. 2
      subPackDeatil/resourceStatistics/resourceDetail.vue
  2. 19
      subPackDeatil/touristPortrait/touristPortrait.vue

@ -5,7 +5,7 @@
<template v-if="imageArr!=[]">
<swiper-item v-for="(item,index) in imageArr">
<view class="swiper-item uni-bg-red">
<image :src=item style=" height: 400px;"></image>
<image :src='item' mode="widthFix"></image>
</view>
</swiper-item>
</template>

@ -18,14 +18,14 @@
<!-- 游客偏好 -->
<view class="v-card-item"><view class="v-card-box">
<common-title :title="'游客偏好'" ></common-title>
<view class="charts-box-pie">
<view class="charts-box-pie-max">
<qiun-data-charts :chartData="chartData3" :opts="chartOpts3" type="pie" />
</view>
</view></view>
<!-- 职业占比 -->
<view class="v-card-item"><view class="v-card-box">
<common-title :title="'职业占比'" ></common-title>
<view class="charts-box-pie">
<view class="charts-box-pie-max">
<qiun-data-charts :chartData="chartData4" :opts="chartOpts4" type="pie" />
</view>
</view></view>
@ -270,8 +270,8 @@ import {getTouristsData,getSexScaleData,getTouristsPreferencesData,getCareerScal
padding: [5,5,5,5],
enableScroll: false,
legend: {
show: false,
position: "right",
show: true,
position: "bottom",
lineHeight: 25
},
extra: {
@ -302,10 +302,10 @@ import {getTouristsData,getSexScaleData,getTouristsPreferencesData,getCareerScal
dataLabel:false,
color: ["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],
padding: [5,5,5,5],
enableScroll: false,
enableScroll: true,
legend: {
show: false,
position: "right",
show: true,
position: "bottom",
lineHeight: 25
},
extra: {
@ -456,4 +456,9 @@ import {getTouristsData,getSexScaleData,getTouristsPreferencesData,getCareerScal
height: 430rpx;
margin: 20rpx auto;
}
.charts-box-pie-max{
width: 80%;
height: 630rpx;
margin: 20rpx auto;
}
</style>

Loading…
Cancel
Save