Version
5.4.3
Link to Minimal Reproduction
Steps to Reproduce
- plot a candle series
- xAxis Type should be time axis
- give interval value to the chart in axislabels
xAxis: {
type: 'time',
axisLabel:{
interval :2,
}
}
Current Behavior
Interval is not working for axis Type "Time".
option = {
xAxis: {
type: 'time',// type:'category' working
axisLabel:{
interval :2,
}
},
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', 'c', 'd'] // here b is given twice ,if we give c its working
}
}
]
};
Expected Behavior
interval should also work for time axis
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response
1条答案
按热度按时间xkftehaa1#
Its not supposed to work for axis type time. From the documentation:
Interval of Axis label, which is available in category axis.