Module

x/vega_lite/examples/specs/interactive_legend_dblclick.vl.json

A concise grammar of interactive graphics, built on Vega.
Latest
File
{ "$schema": "https://vega.github.io/schema/vega-lite/v4.json", "width": 300, "height": 200, "data": {"url": "data/unemployment-across-industries.json"}, "mark": "area", "selection": { "industry": { "type": "multi", "fields": ["series"], "bind": {"legend": "dblclick"} } }, "encoding": { "x": { "timeUnit": "yearmonth", "field": "date", "axis": {"domain": false, "format": "%Y", "tickSize": 0} }, "y": { "aggregate": "sum", "field": "count", "stack": "center", "axis": null }, "color": { "field":"series", "scale": {"scheme": "category20b"} }, "opacity": { "condition": {"selection": "industry", "value": 1}, "value": 0.2 } }}