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/11/28 10:59:41 UTC

[GitHub] WeiRu1016 opened a new issue #9490: visualMap里面使用相同seriesIndex的时候,第一个的范围不起作用了

WeiRu1016 opened a new issue #9490: visualMap里面使用相同seriesIndex的时候,第一个的范围不起作用了
URL: https://github.com/apache/incubator-echarts/issues/9490
 
 
   option = {
       legend: {
           data: [{
               name: '我的',
               icon: 'line',
           }, {
               name: '其他',
               icon: 'line',
           }, {
               name: '特殊',
               icon: 'rect',
           }],
       },
       tooltip: {
           trigger: 'axis',
       },
       dataset: {
           source:  [
               {
               value: 88.24,
               ringRatioValue: 821.75,
               peerComparisonValue: 83.66,
               online: 9,
               offline: 20,
               date: 1541779200000
           },
           {
               value: 88.24,
               ringRatioValue: 821.75,
               peerComparisonValue: 83.66,
               online: 9,
               offline: 10,
               date: 1542038400000
           },
           {
               value: 30.43,
               ringRatioValue: 352.16,
               peerComparisonValue: 12.14,
               online: 5,
               offline: 0,
               date: 1542297600000
           },
           {
               value: 60.33,
               ringRatioValue: 808.67,
               peerComparisonValue: 72.13,
               online: 8,
               offline: 5,
               date: 1542556800000
           },
           {
               value: 16.56,
               ringRatioValue: 644.35,
               peerComparisonValue: 10.83,
               online: 9,
               offline: 2,
               date: 1542816000000
           },
           {
               value: 18.46,
               ringRatioValue: 729.86,
               peerComparisonValue: 95.32,
               online: 8,
               offline: 2,
               date: 1543075200000
           },
           {
               value: 24.87,
               ringRatioValue: 773.17,
               peerComparisonValue: 5.69,
               online: 7,
               offline: 10,
               date: 1543334400000
           }
           ]
       },
       xAxis: {type: 'time'},
       yAxis: {},
       visualMap: [{
         selectedMode:'single',
         show: true,
         pieces: [{
           gte: 1542297600000,
           lte: 1542297600000,
           symbol: 'rect',
           symbolSize: 20,
         }],
         dimension: 'date',
         seriesIndex: 0,
         zlevel: 100,
       }, 
       {
         selectedMode:'multiple',
         selected: false,
         show: true,
         pieces: [{
           gt: 0,
           symbol: 'triangle',
           symbolSize: 20,
         }],
         dimension: 'offline',
         seriesIndex: 0,
       }
       ],
       // Declare several bar series, each will be mapped
       // to a column of dataset.source by default.
       series: [
           {type: 'line', color: 'red',name:'我的', encode: {
               x: 'date',
               y: 'value'
           }, symbol: 'circle', symbolSize: 2},
           {type: 'line', color: 'green',symbol: 'circle',name:'其他',encode: {
               x: 'date',
               y: 'peerComparisonValue'
           },symbolSize: 2},
           {type: 'line', color: 'red',symbol: 'circle',name:'特殊',encode: {
               x: 'date',
               y: '_'
           },symbolSize: 2},
       ]
   };
   visualMap里面使用相同seriesIndex的时候,第一个visualMap匹配的方块出不来了

----------------------------------------------------------------
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