View data packages (especially in the browser)
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dist
lib
test
vendor
.babelrc
.gitignore
LICENSE
README.md
package.json

README.md

Compile and convert Data Package views specifications.

Install

NPM

npm install datapackage-render

Usage

Library

import dprender from 'datapackage-render'

// takes a vega spec that was written for datapackage and compiles data values
// so it is ready and full Vega spec
let vegaSpec = dprender.compileVegaData(...)

// takes a simple graph spec and generates a plotly spec
let plotlySpec = dprender.simpleToPlotly(...)

// takes a recline spec and converts it into simple spec
let simpleSpec = dprender.convertReclineToSimple(...)

// compile a view - normalize and compile data
let compiledView = dprender.compileView(...)

// takes a [handson]table view and returns HandsOnTable spec
let hTableSpec = dprender.handsOnTableToHandsOnTable(...)

// takes a reactVirtualized view and returns ReactVirtualized spec
let reactVirtualizedSpec = dprender.reactVirtualizedToReactVirtualized(...)