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