Skip to content

Commit

Permalink
Add more examples to VegaLite.param/3
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatanklosko committed Sep 5, 2023
1 parent 9c04071 commit b365067
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/vega_lite.ex
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,13 @@ defmodule VegaLite do
|> ...
])
Parameters can also be specified using UI inputs, or computed based
on other parameters:
Vl.new()
|> Vl.param("height", value: 20, bind: [input: :range, min: 1, max: 100, step: 1])
|> Vl.param("halfHeight", expr: "height / 2")
|> ...
See [the docs](https://vega.github.io/vega-lite/docs/parameter.html) for more details.
"""
Expand Down

0 comments on commit b365067

Please sign in to comment.