https://github.com/augustunderground/vegaview
WebKit based viewer for hvega plots
https://github.com/augustunderground/vegaview
haskell vega-lite webview
Last synced: 23 days ago
JSON representation
WebKit based viewer for hvega plots
- Host: GitHub
- URL: https://github.com/augustunderground/vegaview
- Owner: AugustUnderground
- License: bsd-3-clause
- Created: 2022-10-24T08:19:28.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-10-24T08:20:00.000Z (over 3 years ago)
- Last Synced: 2026-01-27T02:52:37.816Z (5 months ago)
- Topics: haskell, vega-lite, webview
- Language: Haskell
- Homepage: https://augustunderground.github.io/vegaview
- Size: 41 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# vegaview
A [webviewhs](https://github.com/lettier/webviewhs) based plot viewer for
[hvega](https://github.com/DougBurke/hvega).
## Example
```haskell
import qualified Graphics.Vega.VegaLite.View as Plt
import qualified Graphics.Vega.VegaLite.Simple as Plt
main :: IO ()
main = do
Plt.show' $ Plt.barChart xLabel yLabel columns freqs
where
xLabel = "foo"
yLabel = "bar"
columns = ["cat", "dog", "horse"]
freqs = [0.4, 0.8, 0.5]
```