Skip to content

Commit

Permalink
Address the comment
Browse files Browse the repository at this point in the history
  • Loading branch information
yhoonkim committed Jul 20, 2023
1 parent 7c0ae28 commit ec6e2e1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 6 additions & 3 deletions examples/specs/area_cumulative_freq.vl.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {"url": "data/movies.json"},
"transform": [{
"aggregate":[{"op": "count", "field": "*", "as": "count"}],
"groupby": ["IMDB Rating"]
},
{
"sort": [{"field": "IMDB Rating"}],
"window": [{"op": "count", "field": "count", "as": "Cumulative Count"}],
"window": [{"op": "sum", "field": "count", "as": "Cumulative Count"}],
"frame": [null, 0]
}],
"mark": "area",
Expand All @@ -14,8 +18,7 @@
},
"y": {
"field": "Cumulative Count",
"type": "quantitative",
"aggregate": "max"
"type": "quantitative"
}
}
}
1 change: 1 addition & 0 deletions src/normalize/pathoverlay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export class PathOverlayNormalizer implements NonFacetUnitNormalizer<UnitSpecWit
// FIXME: determine rules for applying selections.

// Need to copy stack config to overlayed layer
// FIXME: normalizer shouldn't call `initMarkdef`, a method from an init phase.
const stackProps = stack(initMarkdef(markDef, encoding, config), encoding);

let overlayEncoding = encoding;
Expand Down

0 comments on commit ec6e2e1

Please sign in to comment.