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

Dim--dim on x y #526

Merged
merged 6 commits into from
May 22, 2024
Merged

Dim--dim on x y #526

merged 6 commits into from
May 22, 2024

Conversation

schaumb
Copy link
Contributor

@schaumb schaumb commented May 16, 2024

No description provided.

@schaumb schaumb requested a review from simzer May 16, 2024 14:53
src/chart/generator/marker.cpp Outdated Show resolved Hide resolved
src/chart/generator/marker.cpp Outdated Show resolved Hide resolved
src/chart/generator/plot.cpp Outdated Show resolved Hide resolved
@@ -115,6 +115,9 @@ void Options::drilldownTo(const Options &other)
for (auto &&dim : other.getChannels().getDimensions())
if (!getChannels().isSeriesUsed(dim))
stackChannel.addSeries(dim);
if (stackChannel.isDimension()
&& geometry == ShapeType::rectangle)
this->align = Base::Align::Type::stretch;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It smells a bit "workaroundy". Stretch does the work, but it's purpose is complety different.
I feel like that instead, we would need an bool spacing member in Channel which gives controls to manually swich on/off the spacing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noted. I'll not rewrite it in this PR but handle it at the axis refactor.

@schaumb schaumb requested a review from simzer May 22, 2024 05:29
@schaumb schaumb merged commit 033bb07 into main May 22, 2024
1 check passed
@schaumb schaumb deleted the dim_dim_on_x_y branch May 22, 2024 13:53
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