新聞中心
tooltip.axisPointer.label.textStyle.color | Color
[ default: '#fff' ]

創(chuàng)新互聯(lián)堅(jiān)持“要么做到,要么別承諾”的工作理念,服務(wù)領(lǐng)域包括:成都網(wǎng)站建設(shè)、成都做網(wǎng)站、企業(yè)官網(wǎng)、英文網(wǎng)站、手機(jī)端網(wǎng)站、網(wǎng)站推廣等服務(wù),滿足客戶于互聯(lián)網(wǎng)時代的延壽網(wǎng)站設(shè)計(jì)、移動媒體設(shè)計(jì)的需求,幫助企業(yè)找到有效的互聯(lián)網(wǎng)解決方案。努力成為您成熟可靠的網(wǎng)絡(luò)建設(shè)合作伙伴!
提示框組件指示器文本標(biāo)簽中文字的顏色設(shè)置。
tooltip.axisPointer.label.textStyle.fontStyle | string
[ default: 'normal' ]
提示框組件指示器文本標(biāo)簽中文字字體的風(fēng)格
可選:
- 'normal'
- 'italic'
- 'oblique'
tooltip.axisPointer.label.textStyle.fontWeight | string
[ default: normal ]
設(shè)置文字字體的粗細(xì)
可選:
- 'normal'
- 'bold'
- 'bolder'
- 'lighter'
- 100 | 200 | 300 | 400...
tooltip.axisPointer.label.textStyle.fontFamily | string
[ default: 'sans-serif' ]
設(shè)置文字的字體系列
還可以是 'serif' , 'monospace', 'Arial', 'Courier New', 'Microsoft YaHei', ...
tooltip.axisPointer.label.textStyle.fontSize | number
[ default: 12 ]
設(shè)置文字的字體大小
tooltip.axisPointer.label.textStyle.lineHeight | number
設(shè)置文字的行高。
rich 中如果沒有設(shè)置 lineHeight,則會取父層級的 lineHeight。例如:
{
lineHeight: 56,
rich: {
a: {
// 沒有設(shè)置 `lineHeight`,則 `lineHeight` 為 56
}
}
}
tooltip.axisPointer.label.textStyle.width | number, string
設(shè)置文字塊的寬度。一般不用指定,不指定則自動是文字的寬度。在想做表格項(xiàng)或者使用圖片(參見 backgroundColor)時,可能會使用它。
注意,文字塊的 width 和 height 指定的是內(nèi)容高寬,不包含 padding。width 也可以是百分比字符串,如 '100%'。表示的是所在文本塊的 contentWidth(即不包含文本塊的 padding)的百分之多少。之所以以 contentWidth 做基數(shù),因?yàn)槊總€文本片段只能基于 content box 布局。如果以 outerWidth 做基數(shù),則百分比的計(jì)算在實(shí)用中不具有意義,可能會超出。
注意,如果不定義 rich 屬性,則不能指定 width 和 height。
tooltip.axisPointer.label.textStyle.height | number, string
設(shè)置文字塊的高度。一般不用指定,不指定則自動是文字的高度。在使用圖片(參見 backgroundColor)時,可能會使用它。
注意,文字塊的 width 和 height 指定的是內(nèi)容高寬,不包含 padding;如果不定義 rich 屬性,則不能指定 width 和 height。
tooltip.axisPointer.label.textStyle.textBorderColor | string
[ default: 'transparent' ]
設(shè)置文字本身的描邊顏色。
tooltip.axisPointer.label.textStyle.textBorderWidth | number
[ default: 0 ]
設(shè)置文字本身的描邊寬度。
tooltip.axisPointer.label.textStyle.textShadowColor | string
[ default: 'transparent' ]
設(shè)置文字本身的陰影顏色。
tooltip.axisPointer.label.textStyle.textShadowBlur | number
[ default: 0 ]
設(shè)置文字本身的陰影長度。
tooltip.axisPointer.label.textStyle.textShadowOffsetX | number
[ default: 0 ]
設(shè)置文字本身的陰影 X 偏移。
tooltip.axisPointer.label.textStyle.textShadowOffsetY | number
[ default: 0 ]
設(shè)置文字本身的陰影 Y 偏移。
分享名稱:創(chuàng)新互聯(lián)ECharts教程:設(shè)置提示框組件指示器文本標(biāo)簽的文字樣式
轉(zhuǎn)載來源:http://m.fisionsoft.com.cn/article/dhopjdc.html


咨詢
建站咨詢
