Skip to content

Catdaemon/VegaLiteLabels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Vega Labels

Adds labels to vega charts rendered using SVG. I wrote this as there is no easy built-in support for labels in vega-lite at this time, and full vega is too complicated for others who may be creating charts in my organisation. This supports most kinds of chart.

Usage

Assuming we have a Label field in our chart data points:

vega.embed(selector, chart, options, function(error, result) {
  vegaLabels.addLabels(result.view, "Label");
}

Output

chart 1 chart 2 chart 3

About

Adds labels to vega lite bar charts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published