许静 5 years ago
parent
commit
56016e492d
2 changed files with 23 additions and 1 deletions
  1. 19
    0
      src/components/charts/style.scss
  2. 4
    1
      src/pages/person/customerAnalysis/analysis.js

+ 19
- 0
src/components/charts/style.scss View File

1
+.map-container {
2
+  position: absolute;
3
+  top: 0;
4
+  bottom: 0;
5
+  left: 0;
6
+  right: 0;
7
+  width:90vw;
8
+  height:600px;
9
+  display: flex;
10
+  flex-direction: column;
11
+  align-items: center;
12
+  justify-content: space-between;
13
+  box-sizing: border-box;
14
+
15
+  ec-canvas {
16
+    width: 100%;
17
+    height: 100%;
18
+  }
19
+}

+ 4
- 1
src/pages/person/customerAnalysis/analysis.js View File

91
         <AtTabs className="tab-bar" current={this.state.current} tabList={tabList} onClick={this.handleClick.bind(this)}>
91
         <AtTabs className="tab-bar" current={this.state.current} tabList={tabList} onClick={this.handleClick.bind(this)}>
92
           <AtTabsPane current={this.state.current} index={0} >
92
           <AtTabsPane current={this.state.current} index={0} >
93
             <View>
93
             <View>
94
-              <LineChart source={chartInfo} />
94
+              <View style="width:90vw;height:600rpx">
95
+                <LineChart source={chartInfo} />
96
+              </View>
97
+
95
               <View style="height:20rpx;background:#f5f5f5;"> </View>
98
               <View style="height:20rpx;background:#f5f5f5;"> </View>
96
               <View style="padding: 40rpx;">
99
               <View style="padding: 40rpx;">
97
                 <View style="font-size: 36rpx;color: #666;margin-bottom:20rpx;">性别</View>
100
                 <View style="font-size: 36rpx;color: #666;margin-bottom:20rpx;">性别</View>