How to use react-vega - 2 common examples

To help you get started, we’ve selected a few react-vega examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github commaai / cabana / src / vega / CanHistogramPlot.js View on Github external
y: { value: 0 },
              height: { value: 100 },
              width: { value: 2 },
              fill: { value: 'firebrick' }
            },
            update: {
              x: { signal: 'brush[1]' }
            }
          }
        }
      ]
    }
  ]
};

export default createClassFromSpec(canHistogramSpec);
github linnarsson-lab / loom-viewer / client / components / violinplot.js View on Github external
componentDidMount() {
		const view = this.refs.view;
		const width = (view.clientWidth) | 0;
		const height = (view.clientHeight) | 0;
		const spec = makeViolinPlotSpec(width, height);
		const plot = createClassFromSpec('plot', spec);
		this.setState({ plot });
	}

react-vega

Convert Vega spec into React class conveniently

Apache-2.0
Latest version published 2 years ago

Package Health Score

62 / 100
Full package analysis

Popular react-vega functions

Similar packages