日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
創(chuàng)新互聯(lián)ECharts教程:設(shè)置徑向軸指示器label標(biāo)簽的文字樣式

在上節(jié)內(nèi)容中我們對 ECharts 徑向軸指示器的基本屬性有了了解,這節(jié)我們來看看這些基本屬性中的 textStyle 屬性是怎樣設(shè)置文本標(biāo)簽中的文字樣式的。

創(chuàng)新互聯(lián)建站主營隨縣網(wǎng)站建設(shè)的網(wǎng)絡(luò)公司,主營網(wǎng)站建設(shè)方案,app軟件定制開發(fā),隨縣h5小程序定制開發(fā)搭建,隨縣網(wǎng)站營銷推廣歡迎隨縣等地區(qū)企業(yè)咨詢

radiusAxis.axisPointer.label.textStyle   |   boolean

設(shè)置徑向軸指示器文本標(biāo)簽的文字樣式。

radiusAxis.axisPointer.label.textStyle.color   |   Color

[ default: '#fff' ]

設(shè)置徑向軸指示器文本標(biāo)簽文字的顏色。

radiusAxis.axisPointer.label.textStyle.fontStyle   |   string

[ default: 'normal' ]

設(shè)置徑向軸指示器文本標(biāo)簽文字字體的風(fēng)格

可選:

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

radiusAxis.axisPointer.label.textStyle.fontWeight   |   string

[ default: normal ]

設(shè)置徑向軸指示器文本標(biāo)簽文字字體的粗細(xì)

可選:

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

radiusAxis.axisPointer.label.textStyle.fontFamily   |   string

[ default: 'sans-serif' ]

設(shè)置徑向軸指示器文本標(biāo)簽文字的字體系列

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

radiusAxis.axisPointer.label.textStyle.fontSize   |   number

[ default: 12 ]

設(shè)置徑向軸指示器文本標(biāo)簽文字的字體大小

radiusAxis.axisPointer.label.textStyle.lineHeight   |   number

設(shè)置徑向軸指示器文本標(biāo)簽的行高。

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

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

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

設(shè)置徑向軸指示器文本標(biāo)簽文字塊的寬度。

一般不用指定,不指定則自動(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。

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

設(shè)置徑向軸指示器文本標(biāo)簽文字塊的高度。一般不用指定,不指定則自動(dòng)是文字的高度。在使用圖片(參見 backgroundColor)時(shí),可能會(huì)使用它。

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

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

radiusAxis.axisPointer.label.textStyle.textBorderColor   |   string

[ default: 'transparent' ]

設(shè)置徑向軸指示器文本標(biāo)簽文字本身的描邊顏色。

radiusAxis.axisPointer.label.textStyle.textBorderWidth   |   number

[ default: 0 ]

設(shè)置徑向軸指示器文本標(biāo)簽文字本身的描邊寬度。

radiusAxis.axisPointer.label.textStyle.textShadowColor   |   string

[ default: 'transparent' ]

設(shè)置徑向軸指示器文本標(biāo)簽文字本身的陰影顏色。

radiusAxis.axisPointer.label.textStyle.textShadowBlur   |   number

[ default: 0 ]

設(shè)置徑向軸指示器文本標(biāo)簽文字本身的陰影長度。

radiusAxis.axisPointer.label.textStyle.textShadowOffsetX   |   number

[ default: 0 ]

設(shè)置徑向軸指示器文本標(biāo)簽文字本身的陰影 X 偏移。

radiusAxis.axisPointer.label.textStyle.textShadowOffsetY   |   number

[ default: 0 ]

設(shè)置徑向軸指示器文本標(biāo)簽文字本身的陰影 Y 偏移。


文章名稱:創(chuàng)新互聯(lián)ECharts教程:設(shè)置徑向軸指示器label標(biāo)簽的文字樣式
本文來源:http://www.5511xx.com/article/cdcjdcc.html