|
@@ -28,22 +28,26 @@
|
|
// 多列柱状图
|
|
// 多列柱状图
|
|
this.option = {
|
|
this.option = {
|
|
xAxis: {
|
|
xAxis: {
|
|
|
|
+ axisLabel: {
|
|
|
|
+ formatter: "{value}",
|
|
|
|
+ color: "#e2e9ff",
|
|
|
|
+ },
|
|
data: this.xData,
|
|
data: this.xData,
|
|
},
|
|
},
|
|
|
|
|
|
- // tooltip: { //提示框组件
|
|
|
|
- // trigger: 'item', //item数据项图形触发,主要在散点图,饼图等无类目轴的图表中使用。
|
|
|
|
- // axisPointer: {
|
|
|
|
- // // 坐标轴指示器,坐标轴触发有效
|
|
|
|
- // type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
|
|
|
|
- // },
|
|
|
|
- // backgroundColor: "rgba(255,255,255,0.2)",
|
|
|
|
- // borderColor: "rgba(255,255,255,0.2)",
|
|
|
|
- // textStyle: { // 提示框浮层的文本样式。
|
|
|
|
- // color: 'rgba(255,255,255,0.8)',
|
|
|
|
-
|
|
|
|
- // },
|
|
|
|
- // },
|
|
|
|
|
|
+ tooltip: { //提示框组件
|
|
|
|
+ trigger: 'item', //item数据项图形触发,主要在散点图,饼图等无类目轴的图表中使用。
|
|
|
|
+ axisPointer: {
|
|
|
|
+ // 坐标轴指示器,坐标轴触发有效
|
|
|
|
+ type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
|
|
|
|
+ },
|
|
|
|
+ backgroundColor: "rgba(255,255,255,0.2)",
|
|
|
|
+ borderColor: "rgba(255,255,255,0.2)",
|
|
|
|
+ textStyle: { // 提示框浮层的文本样式。
|
|
|
|
+ color: 'rgba(255,255,255,0.8)',
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ },
|
|
toolbox: {
|
|
toolbox: {
|
|
show: true,
|
|
show: true,
|
|
/* feature: {
|
|
/* feature: {
|
|
@@ -58,6 +62,7 @@
|
|
textStyle: {
|
|
textStyle: {
|
|
color: '#ffffff' //字体颜色
|
|
color: '#ffffff' //字体颜色
|
|
},
|
|
},
|
|
|
|
+ padding: 20,
|
|
|
|
|
|
},
|
|
},
|
|
yAxis: {
|
|
yAxis: {
|