Skip to content

[Bug] K线图数据渲染错误 #16266

@xiaozhang199900

Description

@xiaozhang199900

Version

5.2.2

Link to Minimal Reproduction

No response

Steps to Reproduce

import * as echarts from 'echarts';

var chartDom = document.getElementById('main');
var myChart = echarts.init(chartDom);
var option;

option = {
  xAxis: {
    data: ['2017-10-24', '2017-10-25', '2017-10-26', '2017-10-27']
  },
  yAxis: {},
  series: [
    {
      type: 'candlestick',
      data: [
        ['0.000000000012', '0.000000000034', '0.000000000010', '0.000000000038']
      ]
    }
  ]
};

option && myChart.setOption(option);

Current Behavior

当数据值过小时K线无法解析,导致变为一条直线。

Expected Behavior

K线正常展示

Environment

操作系统:windows10
浏览器:Chrome 
框架vue2.0

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions