We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 710cebb commit 12bb271Copy full SHA for 12bb271
1 file changed
src/writer/vegalite/mod.rs
@@ -1068,8 +1068,12 @@ impl Writer for VegaLiteWriter {
1068
let mut vl_spec = json!({
1069
"$schema": self.schema
1070
});
1071
- vl_spec["width"] = json!("container");
1072
- vl_spec["height"] = json!("container");
+ // Container sizing doesn't work with faceting in Vega-Lite, so only apply it
+ // for non-faceted charts
1073
+ if spec.facet.is_none() {
1074
+ vl_spec["width"] = json!("container");
1075
+ vl_spec["height"] = json!("container");
1076
+ }
1077
1078
if let Some(labels) = &spec.labels {
1079
if let Some(title) = labels.labels.get("title") {
0 commit comments