|
@@ -222,8 +222,11 @@ export default {
|
|
setOptionsTooltip() {
|
|
setOptionsTooltip() {
|
|
const optionsSetup = this.optionsSetup;
|
|
const optionsSetup = this.optionsSetup;
|
|
const tooltip = {
|
|
const tooltip = {
|
|
- trigger: "item",
|
|
|
|
- show: true,
|
|
|
|
|
|
+ show: optionsSetup.isShowTooltip,
|
|
|
|
+ trigger: optionsSetup.tooltipTrigger,
|
|
|
|
+ axisPointer: {
|
|
|
|
+ type: optionsSetup.tooltipAxisPointerType,
|
|
|
|
+ },
|
|
textStyle: {
|
|
textStyle: {
|
|
color: optionsSetup.tipsColor,
|
|
color: optionsSetup.tipsColor,
|
|
fontSize: optionsSetup.tipsFontSize,
|
|
fontSize: optionsSetup.tipsFontSize,
|
|
@@ -359,13 +362,13 @@ export default {
|
|
name: yAxisList[i],
|
|
name: yAxisList[i],
|
|
type: "bar",
|
|
type: "bar",
|
|
data: data,
|
|
data: data,
|
|
- barGap: "0%",
|
|
|
|
|
|
+ barGap: optionsSetup.barGap + "%",
|
|
stack: this.getStackStyle(),
|
|
stack: this.getStackStyle(),
|
|
barWidth: optionsSetup.maxWidth,
|
|
barWidth: optionsSetup.maxWidth,
|
|
label: {
|
|
label: {
|
|
show: optionsSetup.isShow,
|
|
show: optionsSetup.isShow,
|
|
- position: "top",
|
|
|
|
- distance: 10,
|
|
|
|
|
|
+ position: optionsSetup.fontPosition,
|
|
|
|
+ distance: optionsSetup.fontDistance,
|
|
fontSize: optionsSetup.fontSize,
|
|
fontSize: optionsSetup.fontSize,
|
|
color: optionsSetup.dataColor,
|
|
color: optionsSetup.dataColor,
|
|
fontWeight: optionsSetup.fontWeight,
|
|
fontWeight: optionsSetup.fontWeight,
|
|
@@ -466,13 +469,13 @@ export default {
|
|
name: val.series[i].name,
|
|
name: val.series[i].name,
|
|
type: "bar",
|
|
type: "bar",
|
|
data: val.series[i].data,
|
|
data: val.series[i].data,
|
|
- barGap: "0%",
|
|
|
|
|
|
+ barGap: optionsSetup.barGap + "%",
|
|
stack: this.getStackStyle(),
|
|
stack: this.getStackStyle(),
|
|
barWidth: optionsSetup.maxWidth,
|
|
barWidth: optionsSetup.maxWidth,
|
|
label: {
|
|
label: {
|
|
show: optionsSetup.isShow,
|
|
show: optionsSetup.isShow,
|
|
- position: "top",
|
|
|
|
- distance: 10,
|
|
|
|
|
|
+ position: optionsSetup.fontPosition,
|
|
|
|
+ distance: optionsSetup.fontDistance,
|
|
fontSize: optionsSetup.fontSize,
|
|
fontSize: optionsSetup.fontSize,
|
|
color: optionsSetup.dataColor,
|
|
color: optionsSetup.dataColor,
|
|
fontWeight: optionsSetup.fontWeight,
|
|
fontWeight: optionsSetup.fontWeight,
|