No Preview

Sorry, but you either have no stories or none are selected somehow.

If the problem persists, check the browser console, or the terminal you've run Storybook from.

<Vega> React Component

Will recompile when spec changes and update when data changes.
<Vega data={this.state.data} spec={this.state.spec} onSignalHover={this.handleHover} />

ReactVega.createClassFromSpec()

Use the given spec to create a reusable component.
const BarChart = ReactVega.createClassFromSpec(barSpec);
<BarChart data={this.state.data} onSignalHover={this.handleHover} />
Hover info: