Datazoom 问题 #4475

Closed
mingjunyang opened this Issue Nov 15, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@mingjunyang

问题简述 (One-line summary)

在x轴数据中只给某一条label设置了样式。

var xAxis=[
  "thawte DV SSL SHA256 CA",
   "thawte SHA256 SSL CA", 
   "thawte EV SSL CA - G3",
    {
    "value": "TrustAsia DV SSL CA - G5",
    "textStyle": {
        "fontSize": 14,
        "color": "red",
        "fontWeight": "bold"
    }
},
 "VeriSign Class 3 Secure Server CA - G3",
  "Thawte Premium Server CA"
]
// xAxis: [
//     {
//         type: 'category',
//         data: xAxis,
//         axisLabel: {
//             interval: 0,
//             rotate: 30
//         }
//     }
// ],

但是在滑动datazoom的时候带样式的label会发生变化。如下图:
正常显示
a1

滑动datazoom之后
a2

版本及环境 (Version & Environment)

  • ECharts 版本 (ECharts version):
    "echarts": "^3.3.1"
  • 浏览器类型和版本 (Browser version):
    Firefox Developer Edition 51.0a2 (2016-11-14) (64-bit)
    Google Chrome 54.0.2840.98 (64-bit)
  • 操作系统类型和版本 (OS Version):
    MacOS 10.12.1

重现步骤 (Steps to reproduce)

期望结果 (Expected behaviour)

期望结果是红色那条标签不会随着datazoom变化。

可能哪里有问题 (What went wrong)

ECharts配置项 (ECharts option)

option = {

}

其他信息 (Other comments)

@100pah 100pah closed this in 9257e95 Nov 18, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment