zjqzero commented 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-552386124
 
 
   for bug fix test please use this option contains K and CK data list
   ```
       option = {
           title: {
               text: 'K线图'
           },
           legend: {
               left: 'center',
               data: ['K', 'CK'],
               selected: {
                   'K': true,
                   'CK': true
               }
           },
           grid: [{
               left: '10%',
               right: '10%',
               height: '50%'
           }],
           xAxis: [{
               type: 'category',
               boundaryGap: true,
               axisLine: {onZero: false},
               splitLine: {show: false},
               data: [
                   "2019-10-14 00:00",
                   "2019-10-15 00:00",
                   "2019-10-16 00:00",
                   "2019-10-17 00:00",
                   "2019-10-18 00:00",
                   "2019-10-21 00:00",
                   "2019-10-22 00:00",
                   "2019-10-23 00:00",
                   "2019-10-24 00:00",
                   "2019-10-25 00:00",
                   "2019-10-28 00:00",
                   "2019-10-29 00:00",
                   "2019-10-30 00:00",
                   "2019-10-31 00:00",
                   "2019-11-01 00:00",
                   "2019-11-04 00:00",
                   "2019-11-05 00:00",
                   "2019-11-06 00:00",
                   "2019-11-07 00:00",
                   "2019-11-08 00:00"
               ]
           }],
           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: [
                       [
                           2993.9617,
                           3007.8834,
                           2989.8125,
                           3026.3834,
                           20861480200.0,
                           221201755725.0
                       ],
                       [
                           3005.6646,
                           2991.0459,
                           2986.3033,
                           3005.6646,
                           15537690400.0,
                           169531932487.99997
                       ],
                       [
                           2992.6103,
                           2978.7124,
                           2975.9233,
                           3010.4241,
                           14989009600.0,
                           166794708829.39996
                       ],
                       [
                           2979.9929,
                           2977.3342,
                           2969.568,
                           2986.7191,
                           12252761400.0,
                           136051252104.1
                       ],
                       [
                           2982.3417,
                           2938.1413,
                           2933.2424,
                           2987.2035,
                           15119635800.0,
                           163319185200.19998
                       ],
                       [
                           2933.8969,
                           2939.6179,
                           2917.6884,
                           2940.3246,
                           13248408500.0,
                           145693532658.90002
                       ],
                       [
                           2945.6001,
                           2954.3799,
                           2934.3873,
                           2954.6415,
                           11822713500.0,
                           131168453502.19998
                       ],
                       [
                           2952.9693,
                           2941.6188,
                           2934.6274,
                           2957.2995,
                           12387938600.0,
                           139709059077.2
                       ],
                       [
                           2944.0067,
                           2940.9215,
                           2927.0612,
                           2953.0441,
                           12662712800.0,
                           141832847724.1
                       ],
                       [
                           2940.4741,
                           2954.9327,
                           2920.5195,
                           2958.2409,
                           13686070600.0,
                           160224090643.7
                       ],
                       [
                           2958.686,
                           2980.0498,
                           2956.9607,
                           2980.128,
                           17446612700.0,
                           199770850449.00003
                       ],
                       [
                           2979.0365,
                           2954.176,
                           2955.1887,
                           2979.0365,
                           16611005800.0,
                           195288081599.2
                       ],
                       [
                           2949.4631,
                           2939.3209,
                           2934.8279,
                           2953.2986,
                           15879811000.0,
                           181529501311.8
                       ],
                       [
                           2944.84,
                           2929.06,
                           2923.52,
                           2946.75,
                           16157148300.0,
                           181801937403
                       ],
                       [
                           2924.3402,
                           2958.1992,
                           2917.1455,
                           2959.833,
                           16066020900.0,
                           176550913441.6
                       ],
                       [
                           2964.576,
                           2975.4919,
                           2964.576,
                           2983.0581,
                           16724836400.0,
                           188710094728.1
                       ],
                       [
                           2977.7048,
                           2991.5622,
                           2968.0324,
                           3008.3144,
                           17989159300.0,
                           203691630168.5
                       ],
                       [
                           2992.0399,
                           2978.5955,
                           2969.7242,
                           2995.5629,
                           16526354700.0,
                           183985236208.0
                       ],
                       [
                           2978.1531,
                           2978.7144,
                           2969.1201,
                           2988.955,
                           13695267800.0,
                           155834877729.49997
                       ],
                       [
                           2993.9773,
                           2964.1849,
                           2962.8447,
                           2998.7594,
                           14976559800.0,
                           173880579468.1
                       ]
                   ]
               },
               {
                   name: 'CK',
                   type: 'candlestick',
                   data: [
                       [
                           2989.8125,
                           3026.3834,
                           2989.8125,
                           3026.3834
                       ],
                       "-",
                       [
                           3005.6646,
                           2975.9233,
                           2975.9233,
                           3005.6646
                       ],
                       "-",
                       [
                           2986.7191,
                           2933.2424,
                           2933.2424,
                           2986.7191
                       ],
                       [
                           2940.3246,
                           2917.6884,
                           2917.6884,
                           2940.3246
                       ],
                       [
                           2934.3873,
                           2954.6415,
                           2934.3873,
                           2954.6415
                       ],
                       [
                           2934.6274,
                           2957.2995,
                           2934.6274,
                           2957.2995
                       ],
                       "-",
                       [
                           2953.0441,
                           2920.5195,
                           2920.5195,
                           2953.0441
                       ],
                       [
                           2956.9607,
                           2980.128,
                           2956.9607,
                           2980.128
                       ],
                       [
                           2979.0365,
                           2955.1887,
                           2955.1887,
                           2979.0365
                       ],
                       [
                           2953.2986,
                           2934.8279,
                           2934.8279,
                           2953.2986
                       ],
                       "-",
                       [
                           2946.75,
                           2917.1455,
                           2917.1455,
                           2946.75
                       ],
                       [
                           2964.576,
                           2983.0581,
                           2964.576,
                           2983.0581
                       ],
                       "-",
                       [
                           2969.7242,
                           3008.3144,
                           2969.7242,
                           3008.3144
                       ],
                       "-",
                       [
                           2988.955,
                           2962.8447,
                           2962.8447,
                           2988.955
                       ]
                   ]
               },
   
           ]
       };
   ```
   output: 
   
![2019-11-11_183029](https://user-images.githubusercontent.com/12052416/68580471-69dc7700-04b1-11ea-8fa9-f1643a14d044.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