Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
where-picturesque opened this issue Jan 10, 2025 · 1 comment
Open

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

where-picturesque opened this issue Jan 10, 2025 · 1 comment

Comments

@where-picturesque
Copy link

where-picturesque commented Jan 10, 2025

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

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

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

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

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

@zuoWinger
Copy link

问题加一,请问解决了吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants