Skip to content
xuexue edited this page Jul 31, 2012 · 24 revisions

Polychart.js is a graphing library based on the Grammar of Graphics. It is scoped under the gg namespace. To create plots, construct a gg.graph object and attach data, layers, and optionally scales and facets to it.

  • data.init - set up a data object
  • data.derive - derive a new column for each data point based on existing columns
  • data.filter - get a data object that is a subset of the one you have
  • facet.grid - facet based on up to two variables, in a grid
  • facet.wrap - facet based on one variable, in a grid with wrapping
  • warn - handle warnings
  • error - handle errors