vega/vega-webgl-renderer

Name: vega-webgl-renderer

Owner: Vega

Description: WebGL renderer for Vega.

Created: 2016-12-02 21:47:12.0

Updated: 2017-09-27 10:42:34.0

Pushed: 2016-12-21 21:44:12.0

Homepage: https://vega.github.io/vega-webgl-renderer

Size: 4509

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

WebGL renderer for Vega

Demo

Major features
Usage

Use this scaffolding to get started using the WebGL renderer. Instead of being directly usable after loading Vega, as the SVG and Canvas renderers are, the WebGL renderer is a plugin which requires the inclusion of an additional JavaScript library.

The WebGL renderer requires Vega 3.0 (currently in beta).

y>
cript src="https://d3js.org/d3.v4.min.js"></script>
cript src="https://unpkg.com/vega/build/vega.min.js" charset="utf-8"></script>
cript src="https://unpkg.com/vega-webgl-renderer/build/vega-webgl-renderer.js" charset="utf-8"></script>

iv id="vis"></div>
cript>
// Load in your own Vega spec here.
d3.json('https://vega.github.io/vega-webgl-renderer/spec/bar-hover-label.vg.json', function (spec) {
  var view = new vega.View(vega.parse(spec))
    .initialize(document.querySelector('#vis'))
    .renderer('webgl')
    .run();
});
script>
dy>
Build
install
run build
Test

Testing requires that the Selenium server is running with the Chrome driver installed. To run all tests:

run test

To just run the linter:

run lint
Contributing

Please try it out and let us know how it works for you. Bug reports, feature and improvement ideas, and PRs welcome.

This code is built and maintained by the Kitware Resonant team in collaboration with the UW Interactive Data Lab. The work is supported by the DARPA AFRL XDATA program.

Known issues
Notes

There is one minor change to extrude-polyline which hacks in a way to close mitered strokes, which has not been merged upstream.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.