You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/07/05 16:17:28 UTC

[GitHub] warrenspe opened a new issue #8655: Selected visualmap items reset when timeline ticks

warrenspe opened a new issue #8655: Selected visualmap items reset when timeline ticks
URL: https://github.com/apache/incubator-echarts/issues/8655
 
 
   <!--
   为了方便我们能够复现和修复 bug,请遵从下面的规范描述您的问题。
   -->
   
   
   ### One-line summary [问题简述]
   Selected visualmap items reset when timeline ticks
   
   
   
   
   ### Version & Environment [版本及环境]
   + ECharts version [ECharts 版本]: 4.1.0
   + Browser version [浏览器类型和版本]: Chrome 67
   + OS Version [操作系统类型和版本]: Win 10
   
   
   
   
   
   ### Expected behaviour [期望结果]
   Selected visualmap items would be retained between timeline ticks
   
   
   
   
   ### ECharts option [ECharts配置项]
   <!-- Copy and paste your 'echarts option' here. -->
   <!-- [下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->
   ```javascript
   option = {
     "baseOption": {
       "timeline": {
         "axisType": "category",
         "orient": "horizontal",
         "autoPlay": true,
         "playInterval": 1000,
         "left": 0,
         "bottom": 0,
         "width": "90%",
         "height": 40,
         "label": {
           "normal": {
             "textStyle": {
               "color": "#000"
             }
           },
           "emphasis": {
             "textStyle": {
               "color": "#000"
             }
           }
         },
         "symbol": "none",
         "lineStyle": {
           "color": "#555"
         },
         "checkpointStyle": {
           "color": "#bbb",
           "borderColor": "#777",
           "borderWidth": 2
         },
         "controlStyle": {
           "showNextBtn": false,
           "showPrevBtn": false,
           "normal": {
             "color": "#666",
             "borderColor": "#666"
           },
           "emphasis": {
             "color": "#aaa",
             "borderColor": "#aaa"
           }
         },
         "data": [
           1,
           2
         ]
       },
       "backgroundColor": "#fff",
       "title": [
         {
           "text": 1997,
           "textAlign": "center",
           "left": 180,
           "top": 55,
           "textStyle": {
             "fontSize": 100,
             "color": "rgba(0, 0, 0, 0.2)"
           }
         },
         {
           "text": "title",
           "left": "center",
           "top": 10,
           "textStyle": {
             "color": "#000",
             "fontWeight": "normal",
             "fontSize": 20
           }
         }
       ],
       "tooltip": {
         "padding": 5,
         "backgroundColor": "#222",
         "borderColor": "#777",
         "borderWidth": 1
       },
       "grid": {
         "top": 100,
         "containLabel": true,
         "left": 40,
         "right": "30%",
         "width": "65%"
       },
       "xAxis": {
         "type": "value",
         "name": "xaxis",
         "max": 1,
         "min": 0,
         "nameLocation": "middle",
         "nameTextStyle": {
           "fontSize": 18
         },
         "splitLine": {
           "show": false
         },
         "axisLine": {
           "lineStyle": {
             "color": "#000"
           }
         },
         "axisLabel": {
           "formatter": "{value}"
         }
       },
       "yAxis": {
         "type": "value",
         "name": "yaxis",
         "max": 20,
         "min": 0,
         "nameTextStyle": {
           "color": "#000",
           "fontSize": 18
         },
         "axisLine": {
           "lineStyle": {
             "color": "#000"
           }
         },
         "splitLine": {
           "show": false
         },
         "axisLabel": {
           "formatter": "{value}"
         }
       },
       "visualMap": [
         {
           "show": true,
           "orient": "vertical",
           "right": "10%",
           "top": "10%",
           "selectedMode": "multiple",
           "textStyle": {
             "color": "#000"
           },
           "type": "piecewise",
           "categories": [
             "a",
             "b"
           ],
           "textGap": 10,
           "inRange": {
             "color": [
               "#c4ccd3",
               "#546570",
               "#bda29a",
               "#ca8622",
               "#749f83",
               "#91c7ae",
               "#d48265",
               "#61a0a8",
               "#c23531",
               "#60c0dd",
               "#9bca63",
               "#fe8463",
               "#27727b",
               "#26c0c0",
               "#d7ab82",
               "#919e8b",
               "#d87c7c",
               "#f2d643",
               "#893448",
               "#eb8146",
               "#cccccc"
             ]
           }
         }
       ],
       "series": [
         {
           "type": "scatter",
           "data": [
             {
               "value": [
                 0.4,
                 3.8,
                 5.25,
                 "t",
                 1,
                 "a"
               ]
             },
             {
               "value": [
                 0.3,
                 9.3,
                 2.58,
                 "u",
                 1,
                 "a"
               ]
             },
             {
               "value": [
                 0.2,
                 5.8,
                 35.67,
                 "v",
                 1,
                 "b"
               ]
             },
             {
               "value": [
                 0.5,
                 6.5,
                 17.83,
                 "w",
                 1,
                 "b"
               ]
             }
           ]
         }
       ],
       "animationDurationUpdate": 1000,
       "animationEasingUpdate": "quinticInOut"
     },
     "options": [
       {
         "title": {
           "show": true,
           "text": "1"
         },
         "series": {
           "name": 1,
           "type": "scatter",
           "data": [
             [
               0.6,
               3.8,
               5.25,
               "t",
               1,
               "a"
             ],
             [
               0.2,
               9.3,
               2.58,
               "u",
               1,
               "a"
             ],
             [
               0.1,
               5.8,
               35.67,
               "v",
               1,
               "b"
             ],
             [
               0.7,
               6.5,
               17.83,
               "w",
               1,
               "b"
             ]
           ]
         }
       },
       {
         "title": {
           "show": true,
           "text": "2"
         },
         "series": {
           "name": 2,
           "type": "scatter",
           "data": [
             [
               0,
               3.8,
               8.75,
               "t",
               2,
               "a"
             ],
             [
               0,
               7.7,
               2.5,
               "u",
               2,
               "a"
             ],
             [
               0,
               6.1,
               54.92,
               "v",
               2,
               "b"
             ],
             [
               0,
               7.1,
               28.17,
               "w",
               2,
               "b"
             ]
           ]
         }
       }
     ],
     "color": []
   }
   
   ```
   
   
   
   
   ### Other comments [其他信息]
   <!-- For example: Screenshot or Online demo -->
   <!-- [例如,截图或线上实例 (JSFiddle/JSBin/Codepen)] -->
   http://jsfiddle.net/cj31rtpf/1075/
   
   
   ^ Select either a or b, wait until the next timeline update.  Note that the previously selected item is then unselected when the graph reloads
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org