Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datazoom 问题 #4475

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

Datazoom 问题 #4475

mingjunyang opened this issue Nov 15, 2016 · 0 comments

Comments

@mingjunyang
Copy link

mingjunyang commented Nov 15, 2016

问题简述 (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 as completed in 9257e95 Nov 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant