-
Notifications
You must be signed in to change notification settings - Fork 466
Open
Labels
bug 🐛Something isn't workingSomething isn't working
Description
Describe the bug / 问题描述
I have set my chart config to the following, but the tick isn't changing direction no matter i set tickDirection to "positive" or "negative". I'm wondering if I input anything wrong here.
const config = {
xField: "index",
legend: true,
children: [
{
data: columnChartDatumList,
type: "interval",
yField: "value",
colorField: "type",
stack: true,
style: {
maxWidth: 80,
},
},
{
data: lineChartDatumList,
type: "line",
yField: "value",
colorField: "name",
axis: { y: { position: "right" } },
},
],
axis: {
x: {
tickFilter: (_: string | number | Date, i: number) => i % 12 == 0,
tickDirection: 'negative',
}
}
};Reproduction link / 复现链接
No response
Steps to Reproduce the Bug or Issue / 重现步骤
No response
Version / 版本
🆕 2.x
OS / 操作系统
- macOS
- Windows
- Linux
- Others / 其他
Browser / 浏览器
- Chrome
- Edge
- Firefox
- Safari (Limited support / 有限支持)
- IE (Nonsupport / 不支持)
- Others / 其他
Metadata
Metadata
Assignees
Labels
bug 🐛Something isn't workingSomething isn't working