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

為金寨等地區(qū)用戶提供了全套網(wǎng)頁(yè)設(shè)計(jì)制作服務(wù),及金寨網(wǎng)站建設(shè)行業(yè)解決方案。主營(yíng)業(yè)務(wù)為成都網(wǎng)站建設(shè)、成都網(wǎng)站制作、金寨網(wǎng)站設(shè)計(jì),以傳統(tǒng)方式定制建設(shè)網(wǎng)站,并提供域名空間備案等一條龍服務(wù),秉承以專業(yè)、用心的態(tài)度為用戶提供真誠(chéng)的服務(wù)。我們深信只要達(dá)到每一位用戶的要求,就會(huì)得到認(rèn)可,從而選擇與我們長(zhǎng)期合作。這樣,我們也可以走得更遠(yuǎ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)簽文字字體的粗細(xì)
可選:
- '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 中如果沒(méi)有設(shè)置 lineHeight,則會(huì)取父層級(jí)的 lineHeight。例如:
{
lineHeight: 56,
rich: {
a: {
// 沒(méi)有設(shè)置 `lineHeight`,則 `lineHeight` 為 56
}
}
}axisPointer.label.textStyle.width | number, string
文本標(biāo)簽文字塊的寬度。一般不用指定,不指定則自動(dòng)是文字的寬度。在想做表格項(xiàng)或者使用圖片(參見(jiàn) backgroundColor)時(shí),可能會(huì)使用它。
注意,文字塊的 width 和 height 指定的是內(nèi)容高寬,不包含 padding。width 也可以是百分比字符串,如 '100%'。表示的是所在文本塊的 contentWidth(即不包含文本塊的 padding)的百分之多少。之所以以 contentWidth 做基數(shù),因?yàn)槊總€(gè)文本片段只能基于 content box 布局。如果以 outerWidth 做基數(shù),則百分比的計(jì)算在實(shí)用中不具有意義,可能會(huì)超出。
注意,如果不定義 rich 屬性,則不能指定 width 和 height。axisPointer.label.textStyle.height | number, string
文本標(biāo)簽文字塊的高度。一般不用指定,不指定則自動(dòng)是文字的高度。在使用圖片(參見(jiàn) backgroundColor)時(shí),可能會(huì)使用它。
注意,文字塊的 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)簽文字本身的陰影長(zhǎng)度。
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://fisionsoft.com.cn/article/cdgjoje.html


咨詢
建站咨詢
