hvega-0.11.0.1: tests/specs/data/argmin_spaces.vl
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"data": {
"values": [
{
"Fighter Name": "liukang",
"Fighting Style": "tiger",
"Place Rank": 1
},
{
"Fighter Name": "liukang",
"Fighting Style": "crane",
"Place Rank": 10
},
{
"Fighter Name": "liukang",
"Fighting Style": "shaolin",
"Place Rank": 3
},
{
"Fighter Name": "johnnycage",
"Fighting Style": "tiger",
"Place Rank": 6
},
{
"Fighter Name": "johnnycage",
"Fighting Style": "crane",
"Place Rank": 5
},
{
"Fighter Name": "johnnycage",
"Fighting Style": "shaolin",
"Place Rank": 4
},
{
"Fighter Name": "raided",
"Fighting Style": "tiger",
"Place Rank": 8
},
{
"Fighter Name": "raiden",
"Fighting Style": "crane",
"Place Rank": 12
},
{
"Fighter Name": "raiden",
"Fighting Style": "shaolin",
"Place Rank": 2
}
]
},
"description": "An example showing how to use argmin in tooltips with fields with spaces",
"encoding": {
"tooltip": [
{
"field": "Fighter Name",
"type": "nominal"
},
{
"aggregate": "min",
"field": "Place Rank",
"type": "quantitative"
},
{
"aggregate": {
"argmin": "Place Rank"
},
"field": "Fighting Style",
"type": "nominal"
}
],
"x": {
"aggregate": "min",
"field": "Place Rank",
"type": "quantitative"
},
"y": {
"field": "Fighter Name",
"type": "nominal"
}
},
"mark": "point"
}