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

docs: use joinaggregate in relative bar example and add it to bar section too #8128

Merged
merged 3 commits into from
Jun 13, 2022
Merged
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
File renamed without changes
File renamed without changes
Original file line number Diff line number Diff line change
@@ -11,12 +11,11 @@
]
},
"transform": [{
"window": [{
"joinaggregate": [{
"op": "sum",
"field": "Time",
"as": "TotalTime"
}],
"frame": [null, null]
}]
},
{
"calculate": "datum.Time/datum.TotalTime * 100",
8 changes: 6 additions & 2 deletions site/_data/examples.json
Original file line number Diff line number Diff line change
@@ -160,6 +160,10 @@
"name": "isotype_bar_chart_emoji",
"title": "Isotype Dot Plot with Emoji",
"description": "This example was inspired by [@jakevdp](https://github.com/jakevdp) and Isotype Bar Chart by [@jwoLondon](https://github.com/jwoLondon)."
},
{
"name": "bar_percent_of_total",
"title": "Relative Bar Chart (Calculate Percentage of Total)"
}
],
"Scatter & Strip Plots": [
@@ -418,8 +422,8 @@
],
"Advanced Calculations": [
{
"name": "window_percent_of_total",
"title": "Calculate Percentage of Total"
"name": "bar_percent_of_total",
"title": "Relative Bar Chart (Calculate Percentage of Total)"
},
{
"name": "joinaggregate_mean_difference",
2 changes: 2 additions & 0 deletions site/_includes/docs_toc.md
Original file line number Diff line number Diff line change
@@ -287,6 +287,7 @@
- [Nominal]({{site.baseurl}}/docs/type.html#nominal)
- [GeoJSON]({{site.baseurl}}/docs/type.html#geojson)
- [Value]({{site.baseurl}}/docs/value.html)
- [Examples]({{site.baseurl}}/docs/value.html#examples)
- [Projection]({{site.baseurl}}/docs/projection.html)
- [Documentation Overview]({{site.baseurl}}/docs/projection.html#documentation-overview)
- [Projection Properties]({{site.baseurl}}/docs/projection.html#projection-properties)
@@ -329,6 +330,7 @@
- [Using Parameters]({{site.baseurl}}/docs/parameter.html#using-parameters)
- [Selection Configuration]({{site.baseurl}}/docs/parameter.html#config)
- [Value]({{site.baseurl}}/docs/value.html)
- [Examples]({{site.baseurl}}/docs/value.html#examples)
- [Expr]({{site.baseurl}}/docs/parameter.html)
- [Documentation Overview]({{site.baseurl}}/docs/parameter.html#documentation-overview)
- [Defining a Parameter]({{site.baseurl}}/docs/parameter.html#defining-a-parameter)