Skip to content

Commit

Permalink
bin and timeunit can be lifted out of facets as well
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmmease committed Jan 30, 2024
1 parent 3923bdb commit 31acb0a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions vegafusion-core/src/planning/lift_facet_aggregations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,14 @@ impl MutChartVisitor for ExtractFacetAggregationsVisitor {
lifted_transforms.push(TransformSpec::Filter(tx));
child_dataset.transform.remove(0);
}
Some(TransformSpec::Bin(tx)) => {
lifted_transforms.push(TransformSpec::Bin(tx));
child_dataset.transform.remove(0);
}
Some(TransformSpec::Timeunit(tx)) => {
lifted_transforms.push(TransformSpec::Timeunit(tx));
child_dataset.transform.remove(0);
}
_ => {
// Reached unsupported transform type without an aggregation
break None;
Expand Down

0 comments on commit 31acb0a

Please sign in to comment.