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

為金寨等地區(qū)用戶提供了全套網(wǎng)頁設(shè)計制作服務(wù),及金寨網(wǎng)站建設(shè)行業(yè)解決方案。主營業(yè)務(wù)為成都網(wǎng)站建設(shè)、成都網(wǎng)站制作、金寨網(wǎng)站設(shè)計,以傳統(tǒng)方式定制建設(shè)網(wǎng)站,并提供域名空間備案等一條龍服務(wù),秉承以專業(yè)、用心的態(tài)度為用戶提供真誠的服務(wù)。我們深信只要達到每一位用戶的要求,就會得到認(rèn)可,從而選擇與我們長期合作。這樣,我們也可以走得更遠!
坐標(biāo)軸指示器文本標(biāo)簽文字的顏色。
axisPointer.label.textStyle.fontStyle | string
[ default: 'normal' ]
文本標(biāo)簽文字字體的風(fēng)格
可選:
- 'normal'
- 'italic'
- 'oblique'
axisPointer.label.textStyle.fontWeight | string
[ default: normal ]
文本標(biāo)簽文字字體的粗細
可選:
- 'normal'
- 'bold'
- 'bolder'
- 'lighter'
- 100 | 200 | 300 | 400...
axisPointer.label.textStyle.fontFamily | string
[ default: 'sans-serif' ]
文本標(biāo)簽文字的字體系列
還可以是 'serif' , 'monospace', 'Arial', 'Courier New', 'Microsoft YaHei', ...
axisPointer.label.textStyle.fontSize | number
[ default: 12 ]
文本標(biāo)簽文字的字體大小
axisPointer.label.textStyle.lineHeight | number
文本標(biāo)簽文字的行高。
rich 中如果沒有設(shè)置 lineHeight,則會取父層級的 lineHeight。例如:
{
lineHeight: 56,
rich: {
a: {
// 沒有設(shè)置 `lineHeight`,則 `lineHeight` 為 56
}
}
}axisPointer.label.textStyle.width | number, string
文本標(biāo)簽文字塊的寬度。一般不用指定,不指定則自動是文字的寬度。在想做表格項或者使用圖片(參見 backgroundColor)時,可能會使用它。
注意,文字塊的 width 和 height 指定的是內(nèi)容高寬,不包含 padding。width 也可以是百分比字符串,如 '100%'。表示的是所在文本塊的 contentWidth(即不包含文本塊的 padding)的百分之多少。之所以以 contentWidth 做基數(shù),因為每個文本片段只能基于 content box 布局。如果以 outerWidth 做基數(shù),則百分比的計算在實用中不具有意義,可能會超出。
注意,如果不定義 rich 屬性,則不能指定 width 和 height。axisPointer.label.textStyle.height | number, string
文本標(biāo)簽文字塊的高度。一般不用指定,不指定則自動是文字的高度。在使用圖片(參見 backgroundColor)時,可能會使用它。
注意,文字塊的 width 和 height 指定的是內(nèi)容高寬,不包含 padding;如果不定義 rich 屬性,則不能指定 width 和 height。axisPointer.label.textStyle.textBorderColor | string
[ default: 'transparent' ]
文本標(biāo)簽文字本身的描邊顏色。
axisPointer.label.textStyle.textBorderWidth | number
[ default: 0 ]
文本標(biāo)簽文字本身的描邊寬度。
axisPointer.label.textStyle.textShadowColor | string
[ default: 'transparent' ]
文本標(biāo)簽文字本身的陰影顏色。
axisPointer.label.textStyle.textShadowBlur | number
[ default: 0 ]
文本標(biāo)簽文字本身的陰影長度。
axisPointer.label.textStyle.textShadowOffsetX | number
[ default: 0 ]
文本標(biāo)簽文字本身的陰影 X 偏移。
axisPointer.label.textStyle.textShadowOffsetY | number
[ default: 0 ]
文本標(biāo)簽文字本身的陰影 Y 偏移。
當(dāng)前題目:創(chuàng)新互聯(lián)ECharts教程:ECharts坐標(biāo)軸指示器文本標(biāo)簽的文字設(shè)置
瀏覽地址:http://m.5511xx.com/article/cdgjoje.html


咨詢
建站咨詢
