Skip to content

[Bug]: TickDirection isn't working #3106

@andrew20012656

Description

@andrew20012656

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

No one assigned

    Labels

    bug 🐛Something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions