日本综合一区二区|亚洲中文天堂综合|日韩欧美自拍一区|男女精品天堂一区|欧美自拍第6页亚洲成人精品一区|亚洲黄色天堂一区二区成人|超碰91偷拍第一页|日韩av夜夜嗨中文字幕|久久蜜综合视频官网|精美人妻一区二区三区

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

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷(xiāo)解決方案
創(chuàng)新互聯(lián)ECharts教程:ECharts圖例組件配置文本樣式

legend.textStyle   |  Object

專(zhuān)業(yè)領(lǐng)域包括網(wǎng)站建設(shè)、成都網(wǎng)站建設(shè)、商城系統(tǒng)網(wǎng)站開(kāi)發(fā)、微信營(yíng)銷(xiāo)、系統(tǒng)平臺(tái)開(kāi)發(fā), 與其他網(wǎng)站設(shè)計(jì)及系統(tǒng)開(kāi)發(fā)公司不同,成都創(chuàng)新互聯(lián)公司的整合解決方案結(jié)合了幫做網(wǎng)絡(luò)品牌建設(shè)經(jīng)驗(yàn)和互聯(lián)網(wǎng)整合營(yíng)銷(xiāo)的理念,并將策略和執(zhí)行緊密結(jié)合,為客戶(hù)提供全網(wǎng)互聯(lián)網(wǎng)整合方案。

圖例的公用文本樣式。


legend.textStyle.color   |   Color

[ default: #333 ]

文字的顏色。


legend.textStyle.fontStyle   |   string

[ default: 'normal' ]

文字字體的風(fēng)格

可選:

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

legend.textStyle.fontWeight   |   string

[ default: normal ]

文字字體的粗細(xì)

可選:

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

legend.textStyle.fontFamily   |   string

[ default: 'sans-serif' ]

文字的字體系列

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


legend.textStyle.fontSize   |   number

[ default: 12 ]

文字的字體大小


legend.textStyle.lineHeight   |   number

行高。

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

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

legend.textStyle.backgroundColor   |   string, Object

[ default: 'transparent' ]

文字塊背景色。

可以是直接的顏色值,例如:'#123234', 'red', rgba(0,23,11,0.3)'。

可以支持使用圖片,例如:

backgroundColor: {
    image: 'xxx/xxx.png'
    // 這里可以是圖片的 URL,
    // 或者圖片的 dataURI,
    // 或者 HTMLImageElement 對(duì)象,
    // 或者 HTMLCanvasElement 對(duì)象。
}

當(dāng)使用圖片的時(shí)候,可以使用 width 或 height 指定高寬,也可以不指定自適應(yīng)。


legend.textStyle.borderColor   |   string

[ default: 'transparent' ]

文字塊邊框顏色。


legend.textStyle.borderWidth   |   number

[ default: 0 ]

文字塊邊框?qū)挾取?/p>


legend.textStyle.borderRadius   |   number, Array

[ default: 0 ]

文字塊的圓角。


legend.textStyle.padding   |   number, Array

[ default: 0 ]

文字塊的內(nèi)邊距。例如:

  • padding: [3, 4, 5, 6]:表示 [上, 右, 下, 左] 的邊距。
  • padding: 4:表示 padding: [4, 4, 4, 4]。
  • padding: [3, 4]:表示 padding: [3, 4, 3, 4]。

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


legend.textStyle.shadowColor   |   string

[ default: 'transparent' ]

文字塊的背景陰影顏色。


legend.textStyle.shadowBlur   |   number

[ default: 0 ]

文字塊的背景陰影長(zhǎng)度。


legend.textStyle.shadowOffsetX   |   number

[ default: 0 ]

文字塊的背景陰影 X 偏移。


legend.textStyle.shadowOffsetY   |   number

[ default: 0 ]

文字塊的背景陰影 Y 偏移。


legend.textStyle.width   |   number, string

文字塊的寬度。一般不用指定,不指定則自動(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。


legend.textStyle.height   |   number, string

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

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

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


legend.textStyle.textBorderColor   |   string

[ default: 'transparent' ]

文字本身的描邊顏色。


legend.textStyle.textBorderWidth   |   number

[ default: 0 ]

文字本身的描邊寬度。


legend.textStyle.textShadowColor   |   string

[ default: 'transparent' ]

文字本身的陰影顏色。


legend.textStyle.textShadowBlur   |   number

[ default: 0 ]

文字本身的陰影長(zhǎng)度。


legend.textStyle.textShadowOffsetX   |   number

[ default: 0 ]

文字本身的陰影 X 偏移。


legend.textStyle.textShadowOffsetY   |   number

[ default: 0 ]

文字本身的陰影 Y 偏移。


網(wǎng)站欄目:創(chuàng)新互聯(lián)ECharts教程:ECharts圖例組件配置文本樣式
文章起源:http://www.dlmjj.cn/article/dhioghj.html