Skip to content

Comments

Add BarMargin option to Bar and HorizontalBar charts#39

Merged
jentfoo merged 1 commit intomainfrom
jent/bar_margin_config
Jan 23, 2025
Merged

Add BarMargin option to Bar and HorizontalBar charts#39
jentfoo merged 1 commit intomainfrom
jent/bar_margin_config

Conversation

@jentfoo
Copy link
Member

@jentfoo jentfoo commented Jan 23, 2025

This option allows users to control the space between each bar within a series (and in effect the space between series). This PR closes #38.

The option is specified using a float pointer. Although only int values are considered here, the config is defined with a FloatPointer to remain consistent with other optional parameters (we have no precedent for int pointers). Using a pointer allows a user to configure a gap of 0 if they want bars touching each other.

In addition a bug was discovered where the Painter API may not correctly scale the chart when Markpoints are used. This bug is another permutation of #30 that was undiscovered, and fixed by moving this logic under defaultRender.

This option allows users to control the space between each bar within a series (and in effect the space between series).

In addition a bug was discovered where the Painter API may not correctly scale the chart when Markpoints are used. This bug is another permutation of #30 that was undiscovered, and fixed by moving this logic under `defaultRender`.
@jentfoo jentfoo self-assigned this Jan 23, 2025
@jentfoo jentfoo merged commit e48c5ed into main Jan 23, 2025
10 checks passed
@jentfoo jentfoo deleted the jent/bar_margin_config branch January 23, 2025 01:51
@jentfoo jentfoo added the feat Feature or improvement label Aug 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat Feature or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bar chart: Add configuration for spacing between bars

1 participant