-
Notifications
You must be signed in to change notification settings - Fork 19.8k
[Bug] K线图数据渲染错误 #16266
Copy link
Copy link
Closed
Labels
bugdifficulty: easyIssues that can be fixed more easily than the average.Issues that can be fixed more easily than the average.topic: k/candlestick
Milestone
Description
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.0Any additional comments?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugdifficulty: easyIssues that can be fixed more easily than the average.Issues that can be fixed more easily than the average.topic: k/candlestick