feat--柱状堆叠图提示语调整优化

qianming 1 year ago
parent c9898ad6ad
commit 9d4351ef27

@ -815,6 +815,40 @@ export const widgetBarLineStack = {
{ {
name: '提示语设置', name: '提示语设置',
list: [ list: [
{
type: 'el-switch',
label: '显示',
name: 'isShowTooltip',
required: false,
placeholder: '',
value: true
},
{
type: 'el-select',
label: '触发类型',
name: 'tooltipTrigger',
required: false,
placeholder: '',
selectOptions: [
{ code: 'item', name: '数据项' },
{ code: 'axis', name: '坐标轴' },
],
value: 'axis'
},
{
type: 'el-select',
label: '指示器类型',
name: 'tooltipAxisPointerType',
required: false,
placeholder: '',
selectOptions: [
{ code: 'none', name: '无' },
{ code: 'line', name: '直线' },
{ code: 'shadow', name: '阴影' },
{ code: 'cross', name: '十字准星' },
],
value: 'shadow'
},
{ {
type: 'el-input-number', type: 'el-input-number',
label: '字体字号', label: '字体字号',

@ -291,8 +291,11 @@ export default {
setOptionsTooltip() { setOptionsTooltip() {
const optionsSetup = this.optionsSetup; const optionsSetup = this.optionsSetup;
const tooltip = { const tooltip = {
trigger: "item", show: optionsSetup.isShowTooltip,
show: true, trigger: optionsSetup.tooltipTrigger,
axisPointer:{
type: optionsSetup.tooltipAxisPointerType,
},
textStyle: { textStyle: {
color: optionsSetup.tipsColor, color: optionsSetup.tipsColor,
fontSize: optionsSetup.tipsFontSize, fontSize: optionsSetup.tipsFontSize,

@ -151,7 +151,6 @@ export default {
}, },
}, },
fontSize: optionsSetup.fontSize, fontSize: optionsSetup.fontSize,
fontWeight: optionsSetup.optionsSetup, fontWeight: optionsSetup.optionsSetup,
}; };
for (const key in series) { for (const key in series) {
@ -166,7 +165,6 @@ export default {
const optionsSetup = this.optionsSetup; const optionsSetup = this.optionsSetup;
const tooltip = { const tooltip = {
trigger: "item", trigger: "item",
show: true,
textStyle: { textStyle: {
color: optionsSetup.tipsColor, color: optionsSetup.tipsColor,
fontSize: optionsSetup.tipsFontSize, fontSize: optionsSetup.tipsFontSize,

Loading…
Cancel
Save