Version
5.4.2
Link to Minimal Reproduction
Steps to Reproduce
- create a candle stick series
- in series level in encode object in "y" property give same values
- series: [
{
type: 'candlestick',
encode: {
x: 'date',
y: ['a', 'b', 'b', 'd'] // here b is given twice ,if we give c its working
}
}
]
Current Behavior
chart is not getting plotted
option = {
xAxis: {
type: 'time'
},
yAxis: {},
dataset: [
{
source: [
{
a: 20,
b: 34,
c: 10,
d: 38,
date: '2017-10-24'
},
{
a: 40,
b: 35,
c: 30,
d: 50,
date: '2017-10-25'
},
{
a: 31,
b: 38,
c: 33,
d: 44,
date: '2017-10-26'
},
{
a: 38,
b: 15,
c: 5,
d: 42,
date: '2017-10-27'
}
]
}
],
series: [
{
type: 'candlestick',
encode: {
x: 'date',
y: ['a', 'b', 'b', 'd'] // here b is given twice ,if we give c its working
}
}
]
};
Expected Behavior
chart should be plotted
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response
1条答案
按热度按时间iqxoj9l91#
It is questionable whether this is a bug or not.
Even if accepted as bug, chance of someone fixing it is very low. Because the original purpose of encode is to supply different (not identical) pointers.
To me, this issue is a typical candidate for "close as not planned".