Skip to content

🧐[问题] 怎么只设置y轴最大的刻度值 #2835

Open
@where-picturesque

Description

@where-picturesque

🧐 问题描述 [详细地描述问题,让大家都能理解]

间隔差值默认,单独设置y轴最大的刻度值。比如yMax=298,默认最大刻度值是300,怎么设置成298

let yMax;
scale: {
            y:{
                domain: [0,yMax],
                //tickMethod
            },
           
        }

💻 示例代码 [如果有必要,展示代码,线上示例,或仓库]

🚑 其他信息 [如截图等其他信息可以贴在这里]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions