purplepeng opened a new issue #13275:
URL: https://github.com/apache/incubator-echarts/issues/13275


   多个series,xAxis轴type为category,在交叉的区间内,点的个数不同会出现线来回折的情况
   
   配置如下:
   
   ```
   
   option = {
       title: {
           text: 'Awesome Chart'
       },
       tooltip: {
           trigger: 'axis',
           hideDelay: 0,
           backgroundColor: 'rgba(245, 245, 245, 0.8)',
           borderWidth: 1,
           borderColor: '#ccc',
           padding: 10,
           textStyle: {
             color: '#333'
           },
           enterable: true,
           confine: true,
           extraCssText: 'overflow-y: auto; box-shadow: 0 2px 20px 
rgba(0,0,0,.2);'
         },
       xAxis: {
             name: null,
             type: 'category',
             nameTextStyle: {
               color: '#666',
             },
             axisLine: {
               lineStyle: {
                 color: '#999'
               }
             },
             axisLabel: {
               color: '#666'
             },
             splitLine: {
               show: true,
               lineStyle: {
                 color: ['#EAEAEA'],
                 width: 1,
               }
             },
             // data: xAxisData
           },
       yAxis: {},
        dataZoom: [{
           type: 'inside',
           // start: startValue,
           // end: endValue,
           xAxisIndex: 0,
         }, {      
           height: '26px',          
           start: 0,
           end: 0,
           xAxisIndex: 0,        
           handleSize: '80%',
           showDetail: true,
           fillerColor: 'rgba(193, 178, 152, 0.4)',
           dataBackground: {
             lineStyle: {
               color: '#EC808D'
             },
             areaStyle: {
               color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                 offset: 0,
                 color: '#EC808D'
               }, {
                 offset: 1,
                 color: '#FFF'
               }])
             }
           },
           handleStyle: {
             color: '#C4B295',            
             shadowBlur: 3,
             shadowColor: 'rgba(0, 0, 0, 0.6)',
             shadowOffsetX: 2,
             shadowOffsetY: 2,
           },
         }],
       series: [
           {
           type: 'line',
           data:[
               ["2019-05-14", 1.0889],
               ["2019-06-03", 1.0899],
               ["2019-06-04", 1.0899],
               ["2019-06-05", 1.0899],
               ["2019-06-06", 1.0907],
               ["2019-06-10", 1.0907],
               ["2019-06-11", 1.0907],
               ["2019-06-12", 1.0907],
               ["2019-06-13", 1.0907],
               ["2019-06-14", 1.0969],
               ["2019-07-01", 1.1136],
               ["2019-07-02", 1.1136],
               ["2019-07-03", 1.1136],
               ["2019-07-04", 1.1136],
               ["2019-07-05", 1.1182],
               ["2019-07-08", 1.1182],
               ["2019-07-09", 1.1182],
               ["2019-07-10", 1.1182],
               ["2019-07-11", 1.1182],
               ["2019-07-12", 1.1154],
           ]
         },
       {
           type: 'line',
           data: [
               ["2019-06-18", 1.2079],
               ["2019-06-19", 1.2206],
               ["2019-06-20", 1.2471],
               ["2019-06-21", 1.242],
               ["2019-06-24", 1.2468],
               ["2019-06-25", 1.2392],
               ["2019-06-26", 1.2387],
               ["2019-06-27", 1.2477],
               ["2019-06-28", 1.2493],
               ["2019-07-01", 1.2614],
               ["2019-07-02", 1.2614],
               ["2019-07-03", 1.2582],
               ["2019-07-04", 1.2555],
               ["2019-07-05", 1.2566],
               ["2019-07-08", 1.2407],
               ["2019-07-09", 1.2371],
               ["2019-07-10", 1.2361],
               ["2019-07-11", 1.2364],
               ["2019-07-12", 1.2398],
           ]
         }
       ]
   };
   ```
   实现结果:https://gallery.echartsjs.com/editor.html?c=x2EHYSD-AU&v=2
   
其中:在【2019-06-14】、【2019-07-01】区间内,两条线有交叉,但是第二条线出现了往返折回的情况;如果想让两条线正常显示,就是在相同区间内点的个数必须一样吗?不同个数的点就会出现bug?
   如果想解决,是需要通过补充点方法,还是有其它方法
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to