Closed rsyoh-97 closed 3 years ago
Axis titles can be edited per below by listing a "title" within the relevant axis' encoding. A main title can be added by listing a "title" element:
{ "$schema": "https://vega.github.io/schema/vega-lite/v5.json", "description": "Google's stock price over time.", "data": {"url": "data/stocks.csv"}, "transform": [{"filter": "datum.symbol==='GOOG'"}], "mark": "line", "encoding": { "x": {"field": "date", "type": "temporal", "title": "Quarter"}, "y": {"field": "price", "type": "quantitative", "title": "Unemployment Rate"} }, "title": { "text": "Hello", "subtitle": "This data was pulled from x." } }
Axis titles can be edited per below by listing a "title" within the relevant axis' encoding. A main title can be added by listing a "title" element:
{ "$schema": "https://vega.github.io/schema/vega-lite/v5.json", "description": "Google's stock price over time.", "data": {"url": "data/stocks.csv"}, "transform": [{"filter": "datum.symbol==='GOOG'"}], "mark": "line", "encoding": { "x": {"field": "date", "type": "temporal", "title": "Quarter"}, "y": {"field": "price", "type": "quantitative", "title": "Unemployment Rate"} }, "title": { "text": "Hello", "subtitle": "This data was pulled from x." } }