Kanaries / pygwalker

PyGWalker: Turn your pandas dataframe into an interactive UI for visual analysis
https://kanaries.net/pygwalker
Apache License 2.0
10.83k stars 549 forks source link

feat: support vega spec #483

Closed longxiaofei closed 4 months ago

longxiaofei commented 4 months ago

users can initialize graphic-walker through vega config.

vega_sepc = {
  "mark": "bar",
  "encoding": {
    "x": {"field": "season", "type": "nominal", "axis": {"labelAngle": 0}},
    "y": {"field": "casual", "type": "quantitative", "aggregate": "sum"}
  }
}

walker = pyg.walk(df, spec=vega_sepc)

image