Skip to content

Commit

Permalink
fix: fix short observation plot (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixMoelder authored Oct 31, 2024
1 parent 2076245 commit 0d8dba7
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions workflow/resources/datavzrd/spec_short_observations.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"$schema": "https://vega.github.io/schema/vega-lite/v3.json",
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"transform": [
{
"calculate": "indexof(['Very Strong (Alternative)', 'Strong (Alternative)', 'Positive (Alternative)', 'Barely (Alternative)', 'Equal', 'Barely (Reference)', 'Positive (Reference)', 'Strong (Reference)', 'Very Strong (Reference)'], datum.effect)",
"as": "order"
}
],
],
"mark": "bar",
"encoding": {
"y": {
Expand All @@ -29,14 +29,17 @@
"range": ["#ff5555", "#ff6666", "#ff9999", "#ffcccc", "#999999", "#eaf7fb", "#afdfee", "#6cc5e0", "#2dacd2"]
}
},
"tooltip": [ {
"field": "effect",
"type": "nominative",
"title": "Evidence"
}, {
"field": "times",
"type": "quantitative",
"title": "Counts"
} ]
"tooltip": [
{
"field": "effect",
"type": "nominal",
"title": "Evidence"
},
{
"field": "times",
"type": "quantitative",
"title": "Counts"
}
]
}
}
}

0 comments on commit 0d8dba7

Please sign in to comment.