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

Proposal: Option to reduce height #75

Closed
vantaboard opened this issue Jul 1, 2022 · 3 comments
Closed

Proposal: Option to reduce height #75

vantaboard opened this issue Jul 1, 2022 · 3 comments

Comments

@vantaboard
Copy link

vantaboard commented Jul 1, 2022

Add an option to modify the height. For example

stacked100: {
    enable: true,
    height: 0.8,
}

I have an issue where I have a data label set to anchor at the end and align at the end, and it gets cut off at the top.

@y-takey
Copy link
Owner

y-takey commented Jul 2, 2022

Hi @BlackBoardd , Thank you for your proposal. :)
Tell me more about your proposal. What is the height of what?
Is that an issue that specifying the height of the canvas element does not solve?

@vantaboard
Copy link
Author

I ended up using

scales: {
    y: {
        max: 90;
    }
}

Does it makes sense what I was going for? I just wanted to reduce the height of the stacked100. Because it was going too high for my data labels. In this case, the custom property would be at height: 0.9.

@y-takey
Copy link
Owner

y-takey commented Jul 4, 2022

I think it don't needs to be supported by this plugin since it can be specified in the scales.y.max options as you noted.
However, a PR is welcome. (If you do, height should have a different name. Because this plugin also supports horizontal bar)

Thanks

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