Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
## [Unreleased]

### Fixed

- Fixed bug where panel axes were unintentionally anchored to zero when using
`FACET ... SETTING free => 'x'/'y'` (#410).

## 0.3.1 - 2026-04-30

### Fixed
Expand Down
7 changes: 2 additions & 5 deletions src/writer/vegalite/encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -924,11 +924,8 @@ fn build_column_encoding(

// Position scales don't include zero by default — but only when we set
// an explicit domain. With free facet scales (no domain), VL computes
// the domain from data values. Setting zero:false in that case can exclude
// 0 from the domain, breaking charts with pre-computed stacking (y2/theta2
// starts at 0). Let VL's defaults handle it instead.
Comment on lines -927 to -929
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I couldn't reproduce the pre-computed stacking problem described here, so I'm assuming it might've been passenger-fixed earlier.

let is_free = is_position_free_for_aesthetic(aesthetic, ctx.free_scales);
if aesthetic_ctx.is_primary_internal(aesthetic) && !is_free {
// the domain from data values.
if aesthetic_ctx.is_primary_internal(aesthetic) {
scale_obj.insert("zero".to_string(), json!(false));
}

Expand Down
Loading