-
Notifications
You must be signed in to change notification settings - Fork 17
Home
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.
- gg.graph.init - set up a graph object
- gg.graph.data - bind a data object to the graph
- gg.graph.opts - set graph options (see page for full list of options)
- gg.graph.layer - add a layer to the graph
- gg.graph.scale - bind a scale to an aesthetics mapping
- gg.graph.coord - set the coordinate system used to render the graph
- gg.graph.facet - specify a facet
- gg.graph.render - render the graph
- 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
- list of layers - list of all available layers
- list of aesthetics - list of all available aesthetics
- layer.init - set up a graph object
- layer.data - bind a data object to the graph
- layer.map - map an aesthetics to a variable in your data set
- layer.opts - set a layer option or an aesthetics to a constant
- layer.stats - set a statistics to be run on the data prior to rendering
- list of scales - list of all available scales
- scale.init - set up a scale object
- list of statistics - list of all available statistics
- stats.init - set up a statistics object
- facet.grid - facet based on up to two variables, in a grid
- facet.wrap - facet based on one variable, in a grid with wrapping
- coord.cart - cartesian coordinate system
- coord.polar - polar coordinate system
- gg.pivot.map - bind a data object to a row, column, or value
- gg.pivot.stats - select the statistic to display in the table
- gg.pivot.render - render the table
- opts.graph - default graph options
- opts.layer - default layer options (for all layers)
- opts.box - default box-plot layer options
- opts.line - default line-chart layer options
- opts.text - default text layer options
- opts.gradient - default gradient scale options
- opts.grid - default grid options
- opts.axis - default axis options
- opts.axis_x - default x-axis options
- opts.axis_y - default y-axis options