|
@@ -398,41 +398,35 @@ Page({
|
|
|
getScaOption2() {
|
|
|
//请求数据
|
|
|
var xAxis = {
|
|
|
- type: 'value',
|
|
|
- min: 0,
|
|
|
- max: 150000,
|
|
|
- axisLabel: {
|
|
|
- fontSize: 18
|
|
|
- }
|
|
|
- },
|
|
|
- yAxis = {
|
|
|
- type: 'category',
|
|
|
- data: [
|
|
|
- '非常不满意', '不满意', '基本满意', '满意', '非常满意'
|
|
|
- ],
|
|
|
- axisLabel: {
|
|
|
- fontSize: 18
|
|
|
- }
|
|
|
- },
|
|
|
- grid = {
|
|
|
- left: '20%',
|
|
|
- top: '10%',
|
|
|
- bottom: '10%'
|
|
|
- },
|
|
|
- series = [{
|
|
|
- data: [123, 200, 15220, 80333, 1073671],
|
|
|
- type: 'bar',
|
|
|
- barWidth: 25,
|
|
|
- itemStyle: {
|
|
|
- color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{
|
|
|
- offset: 0,
|
|
|
- color: '#3977E6'
|
|
|
- },
|
|
|
- {
|
|
|
- offset: 1,
|
|
|
- color: '#37BBF8'
|
|
|
- }
|
|
|
- ]),
|
|
|
+ type: 'value',
|
|
|
+ min: 0,
|
|
|
+ max: 150000,
|
|
|
+ },
|
|
|
+ yAxis = {
|
|
|
+ type: 'category',
|
|
|
+ data: [
|
|
|
+ '非常不满意', '不满意', '基本满意', '满意', '非常满意'
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ grid = {
|
|
|
+ left: '22%',
|
|
|
+ top: '10%',
|
|
|
+ bottom: '10%'
|
|
|
+ },
|
|
|
+ series = [{
|
|
|
+ data: [123, 200, 15220, 80333, 1073671],
|
|
|
+ type: 'bar',
|
|
|
+ barWidth: 14,
|
|
|
+ itemStyle: {
|
|
|
+ color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{
|
|
|
+ offset: 0,
|
|
|
+ color: '#3977E6'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ offset: 1,
|
|
|
+ color: '#37BBF8'
|
|
|
+ }
|
|
|
+ ]),
|
|
|
// emphasis: {
|
|
|
// barBorderRadius: 7
|
|
|
// },
|