@thematic/vega
This package provides a [Vega](https://vega.github.io/vega/) adapter for thematic.
Last updated 2 months ago by natoverse .
MIT · Original npm · Tarball · package.json
$ cnpm install @thematic/vega 
SYNC missed versions from official npm registry.

This package provides a Vega adapter for thematic.

To use this, you feed it a Vega Specification and a Theme instance, and it will return a copy of the Vega spec with appropriate properties added to globally theme the chart and marks.

Example:

import { load } from '@thematic/core'
import { vega as decorator } from '@thematic/vega'
const vega = require('vega')

const theme = load()
const spec = // a valid Vega spec
const merged = decorator(theme, spec)
const parsed = vega.parse(merged)
return new vega.View(parsed).renderer('svg')

Current Tags

  • 0.9.0                                ...           latest (2 months ago)

2 Versions

  • 0.9.0                                ...           2 months ago
  • 0.8.0                                ...           4 months ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |