zjqzero edited a comment on issue #11611: candlestick chart output error with 
version 4.1.0 above, worked with version 4.0.4 below
URL: 
https://github.com/apache/incubator-echarts/issues/11611#issuecomment-552186399
 
 
   here is the simplest code sample. It seems K conflict with CK, It works when 
remove CK
   
   ```
       option = {
           title: {
               text: 'K线图'
           },
           legend: {
               left: 'center',
               data: ['K', 'CK'],
               selected: {
                   'K': true,
                   'CK': false
               }
           },
           grid: [{
               left: '10%',
               right: '10%',
               height: '50%'
           }],
           xAxis: [{
               type: 'category',
               boundaryGap: true,
               axisLine: {onZero: false},
               splitLine: {show: false},
               data: []
           }],
           yAxis: [{
               scale: true,
               splitArea: {show: true}
           }],
           axisPointer: {
               link: [{
                   xAxisIndex: [0, 1]
               }]
           },
           dataZoom: [
               {
                   type: 'inside',
                   xAxisIndex: [0, 0],
                   start: 0,
                   end: 100
               }
           ],
           tooltip: {
               trigger: 'axis',
               axisPointer: {type: 'line'}
           },
           toolbox: {
               show: true,
               feature: {
                   dataZoom: {yAxisIndex: false},
                   dataView: {readOnly: false},
                   restore: {},
                   saveAsImage: {}
               }
           },
           series: [
               {
                   name: 'K',
                   type: 'candlestick',
                   itemStyle: {
                       normal: {
                           color: '#B22222',
                           color0: '#008000',
                           opacity: 0.4
                       }
                   },
                   data: []
               },
               {
                   name: 'CK',
                   type: 'candlestick',
                   data: []
               }
           ]
       };
   ```
   the difference of K and CK shown below, that's why I should put K and CK in 
one chart, even they are both candlestick type, and supported with echart3 / 
4.0.4
   
   figure K
   ![Firefox_Screenshot_2019-11-10T11-30-22 
887Z](https://user-images.githubusercontent.com/12052416/68543374-19054980-03f1-11ea-8fdb-bc0c9c64a888.png)
   
   figure K and CK
   ![Firefox_Screenshot_2019-11-10T11-31-12 
861Z](https://user-images.githubusercontent.com/12052416/68543377-1acf0d00-03f1-11ea-8ebe-04ae621fef78.png)
   

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org
For additional commands, e-mail: commits-h...@echarts.apache.org

Reply via email to