Skip to content

Additional prop to customize vertical labels height#480

Merged
Hermanya merged 2 commits into
chart-kit:masterfrom
noktigula:feature/parametrized_stacked_bar_chart_height_for_x_labels
Feb 8, 2021
Merged

Additional prop to customize vertical labels height#480
Hermanya merged 2 commits into
chart-kit:masterfrom
noktigula:feature/parametrized_stacked_bar_chart_height_for_x_labels

Conversation

@noktigula

Copy link
Copy Markdown
Contributor

The space used for vertical labels is hardcoded to be 25% of the total chart height. When chart height becomes high, such a big percentage becomes visible noticeable, and, since the labels are usually short, most of this space is actually unused.

This PR introduces new props, verticalLabelsHeightPercentage which can be used to customize this percentage.

@Hermanya Hermanya merged commit a70d70e into chart-kit:master Feb 8, 2021
@Hermanya

Hermanya commented Feb 8, 2021

Copy link
Copy Markdown
Contributor

Thank you for your contribution. Changes from all 3 PRs are now available in v6.11.0 👍

akakaze added a commit to akakaze/react-native-chart-kit that referenced this pull request Jul 11, 2022
The verticalLabelsHeightPercentage added in chart-kit#480 is not brought in, so it does not have the expected effect.
Bring verticalLabelsHeightPercentage into config to make it take effect.
akakaze added a commit to akakaze/react-native-chart-kit that referenced this pull request Jul 11, 2022
The verticalLabelsHeightPercentage added in chart-kit#480 is not brought in, so it does not have the expected effect.
Bring verticalLabelsHeightPercentage into config to make it take effect.
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

Successfully merging this pull request may close these issues.

2 participants