PlotKit Home | »

PlotKit Base

PlotKit Base contains a number of simple functions that are needed for the rest of the PlotKit libraries.

PlotKit.Base Functions

[[1,2], [3,4], [5,6]] --> [1, 2, 3, 4, 5, 6]

Preset Styles

Color Schemes

There are some colour schemes, which are an array of MochiKit.Color.Colors.

A default colour scheme that consists of red, orange, yellow, green, cyan, blue, purple and magenta.

A set of five dark colours.

A set of five bright primary colours.

Three colour set that have a nice professional blue hue.

Office Style

These are base styles that were inspired by charts in Office 12. The color schemes are fairly similar to those found in screenshots of charts available online.

Usage

var layout = PlotKit.Layout("bar", officeOrange());