設(shè)置角度軸指示器中l(wèi)abel的文字樣式

2018-09-15 14:54 更新

angleAxis.axisPointer.label.textStyle.color   |   Color

[ default: '#fff' ]

角度軸指示器中 label 文字的顏色。

angleAxis.axisPointer.label.textStyle.fontStyle   |   string

[ default: 'normal' ]

角度軸指示器中 label 文字字體的風(fēng)格

可選:

  • 'normal'
  • 'italic'
  • 'oblique'

angleAxis.axisPointer.label.textStyle.fontWeight   |   string

[ default: normal ]

角度軸指示器中 label 文字字體的粗細(xì)

可選:

  • 'normal'
  • 'bold'
  • 'bolder'
  • 'lighter'
  • 100 | 200 | 300 | 400...

angleAxis.axisPointer.label.textStyle.fontFamily   |   string

[ default: 'sans-serif' ]

角度軸指示器中 label 文字的字體系列

還可以是 'serif' , 'monospace', 'Arial', 'Courier New', 'Microsoft YaHei', ...

angleAxis.axisPointer.label.textStyle.fontSize   |   number

[ default: 12 ]

角度軸指示器中 label 文字的字體大小

angleAxis.axisPointer.label.textStyle.lineHeight   |   number

角度軸指示器中 label 文字的行高。

rich 中如果沒有設(shè)置 lineHeight,則會(huì)取父層級(jí)的 lineHeight。例如:

{
    lineHeight: 56,
    rich: {
        a: {
            // 沒有設(shè)置 `lineHeight`,則 `lineHeight` 為 56
        }
    }
}

angleAxis.axisPointer.label.textStyle.width   |   number, string

角度軸指示器中 label 文字塊的寬度。

一般不用指定,不指定則自動(dòng)是文字的寬度。在想做表格項(xiàng)或者使用圖片(參見 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。

angleAxis.axisPointer.label.textStyle.height   |   number, string

角度軸指示器中 label 文字塊的高度。

一般不用指定,不指定則自動(dòng)是文字的高度。在使用圖片(參見 backgroundColor)時(shí),可能會(huì)使用它。

注意,文字塊的 width 和 height 指定的是內(nèi)容高寬,不包含 padding。

注意,如果不定義 rich 屬性,則不能指定 width 和 height。

angleAxis.axisPointer.label.textStyle.textBorderColor   |   string

[ default: 'transparent' ]

角度軸指示器中 label 文字本身的描邊顏色。

angleAxis.axisPointer.label.textStyle.textBorderWidth   |   number

[ default: 0 ]

角度軸指示器中 label 文字本身的描邊寬度。

angleAxis.axisPointer.label.textStyle.textShadowColor   |   string

[ default: 'transparent' ]

角度軸指示器中 label 文字本身的陰影顏色。

angleAxis.axisPointer.label.textStyle.textShadowBlur   |   number

[ default: 0 ]

角度軸指示器中 label 文字本身的陰影長度。

angleAxis.axisPointer.label.textStyle.textShadowOffsetX   |   number

[ default: 0 ]

角度軸指示器中 label 文字本身的陰影 X 偏移。

angleAxis.axisPointer.label.textStyle.textShadowOffsetY   |   number

[ default: 0 ]

角度軸指示器中 label 文字本身的陰影 Y 偏移。


以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)