|
@@ -3,7 +3,7 @@
|
|
<charts
|
|
<charts
|
|
style="margin-top: -40px"
|
|
style="margin-top: -40px"
|
|
id="bizchart4"
|
|
id="bizchart4"
|
|
- height="230px"
|
|
|
|
|
|
+ height="220px"
|
|
width="460px"
|
|
width="460px"
|
|
:option="option"
|
|
:option="option"
|
|
/>
|
|
/>
|
|
@@ -19,18 +19,24 @@ export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
option: {
|
|
option: {
|
|
- dataset: {
|
|
|
|
- dimensions: ['product', '2016', '2017'],
|
|
|
|
- source: [
|
|
|
|
- {product: '1', 2016: 85, 2017: 93},
|
|
|
|
- {product: '2', 2016: 73, 2017: 55},
|
|
|
|
- {product: '3', 2016: 65, 2017: 82},
|
|
|
|
- {product: '4', 2016: 53, 2017: 39},
|
|
|
|
- {product: '5', 2016: 53, 2017: 39}
|
|
|
|
- ]
|
|
|
|
|
|
+ tooltip: {
|
|
|
|
+ trigger: 'axis',
|
|
|
|
+ axisPointer: {
|
|
|
|
+ type: 'shadow'
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ grid: {
|
|
|
|
+ left: '3%',
|
|
|
|
+ right: '4%',
|
|
|
|
+ bottom: '2%',
|
|
|
|
+ containLabel: true
|
|
},
|
|
},
|
|
xAxis: {
|
|
xAxis: {
|
|
|
|
+ axisTick: {
|
|
|
|
+ show: false
|
|
|
|
+ },
|
|
type: 'category',
|
|
type: 'category',
|
|
|
|
+ data: ['1.', '2.', '3.', '4.', '5.', '6.'],
|
|
axisLine: {
|
|
axisLine: {
|
|
lineStyle: {
|
|
lineStyle: {
|
|
color: "#a4a2a2",
|
|
color: "#a4a2a2",
|
|
@@ -38,6 +44,8 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
yAxis: {
|
|
yAxis: {
|
|
|
|
+ type: 'value',
|
|
|
|
+ boundaryGap: [0, 0.01],
|
|
axisLine: {
|
|
axisLine: {
|
|
lineStyle: {
|
|
lineStyle: {
|
|
color: "#a4a2a2",
|
|
color: "#a4a2a2",
|
|
@@ -53,38 +61,41 @@ export default {
|
|
label: {
|
|
label: {
|
|
show: true,
|
|
show: true,
|
|
position: 'top',
|
|
position: 'top',
|
|
- },
|
|
|
|
- textStyle: {
|
|
|
|
- color:'rgba(245,126,31,0.74)'
|
|
|
|
|
|
+ color:'rgba(245,126,31,0.74)',
|
|
},
|
|
},
|
|
series: [
|
|
series: [
|
|
{
|
|
{
|
|
|
|
+ name: '分享',
|
|
type: 'bar',
|
|
type: 'bar',
|
|
|
|
+ data: [23, 19, 18, 14, 11, 10],
|
|
itemStyle: {
|
|
itemStyle: {
|
|
normal: {
|
|
normal: {
|
|
- color: new echarts.graphic.LinearGradient(1, 0, 0, 0, [{
|
|
|
|
- offset: 1,
|
|
|
|
- color: 'rgba(54,131,122,0.84)'
|
|
|
|
- }, {
|
|
|
|
|
|
+ color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
offset: 0,
|
|
offset: 0,
|
|
- color: 'rgba(15,227,202,0.54)'
|
|
|
|
|
|
+ color: 'rgba(22,58,143)'
|
|
|
|
+ }, {
|
|
|
|
+ offset: 1,
|
|
|
|
+ color: 'rgba(20,42,68)'
|
|
}]),
|
|
}]),
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- }, {
|
|
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ name: '群发',
|
|
type: 'bar',
|
|
type: 'bar',
|
|
|
|
+ data: [15, 13, 10, 10, 8, 7],
|
|
itemStyle: {
|
|
itemStyle: {
|
|
normal: {
|
|
normal: {
|
|
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
- offset: 1,
|
|
|
|
- color: 'rgba(70,52,38,0.84)'
|
|
|
|
- }, {
|
|
|
|
offset: 0,
|
|
offset: 0,
|
|
- color: 'rgba(245,126,31,0.54)'
|
|
|
|
|
|
+ color: 'rgba(135,85,34)'
|
|
|
|
+ }, {
|
|
|
|
+ offset: 1,
|
|
|
|
+ color: 'rgba(67,42,55)'
|
|
}]),
|
|
}]),
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- },
|
|
|
|
|
|
+ }
|
|
]
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|