新聞中心
grid.tooltip.textStyle | Object
提示框浮層的文本樣式。

洪澤ssl適用于網(wǎng)站、小程序/APP、API接口等需要進(jìn)行數(shù)據(jù)傳輸應(yīng)用場景,ssl證書未來市場廣闊!成為創(chuàng)新互聯(lián)公司的ssl證書銷售渠道,可以享受市場價格4-6折優(yōu)惠!如果有意向歡迎電話聯(lián)系或者加微信:028-86922220(備注:SSL證書合作)期待與您的合作!
grid.tooltip.textStyle.color | Color
[ default: '#fff' ]
文字的顏色。
grid.tooltip.textStyle.fontStyle | string
[ default: 'normal' ]
文字字體的風(fēng)格
可選:
- 'normal'
- 'italic'
- 'oblique'
grid.tooltip.textStyle.fontWeight | string
[ default: normal ]
文字字體的粗細(xì)
可選:
- 'normal'
- 'bold'
- 'bolder'
- 'lighter'
- 100 | 200 | 300 | 400...
grid.tooltip.textStyle.fontFamily | string
[ default: 'sans-serif' ]
文字的字體系列
還可以是 'serif' , 'monospace', 'Arial', 'Courier New', 'Microsoft YaHei', ...
grid.tooltip.textStyle.fontSize | number
[ default: 14 ]
文字的字體大小
grid.tooltip.textStyle.lineHeight | number
行高。
rich 中如果沒有設(shè)置 lineHeight,則會取父層級的 lineHeight。例如:
{
lineHeight: 56,
rich: {
a: {
// 沒有設(shè)置 `lineHeight`,則 `lineHeight` 為 56
}
}
}grid.tooltip.textStyle.width | number, string
文字塊的寬度。一般不用指定,不指定則自動是文字的寬度。在想做表格項(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。
grid.tooltip.textStyle.height | number, string
文字塊的高度。一般不用指定,不指定則自動是文字的高度。在使用圖片(參見 backgroundColor)時,可能會使用它。
注意,文字塊的 width 和 height 指定的是內(nèi)容高寬,不包含 padding。
注意,如果不定義 rich 屬性,則不能指定 width 和 height。
grid.tooltip.textStyle.textBorderColor | string
[ default: 'transparent' ]
文字本身的描邊顏色。
grid.tooltip.textStyle.textBorderWidth | number
[ default: 0 ]
文字本身的描邊寬度。
grid.tooltip.textStyle.textShadowColor | string
[ default: 'transparent' ]
文字本身的陰影顏色。
grid.tooltip.textStyle.textShadowBlur | number
[ default: 0 ]
文字本身的陰影長度。
grid.tooltip.textStyle.textShadowOffsetX | number
[ default: 0 ]
文字本身的陰影 X 偏移。
grid.tooltip.textStyle.textShadowOffsetY | number
[ default: 0 ]
文字本身的陰影 Y 偏移。
網(wǎng)站欄目:創(chuàng)新互聯(lián)ECharts教程:EChartsgrid組件配置提示框浮層文本樣式
當(dāng)前網(wǎng)址:http://fisionsoft.com.cn/article/copheeg.html


咨詢
建站咨詢
