Skip to content
zachberger edited this page Dec 29, 2014 · 17 revisions

HomeList of OptionsScatterplot Options

Scatterplot Options

# color_accessor

The data element to map points' colors to. See main.js for an example.

Possible values: {null, string}

# color_range

The range of colors, used to color different groups of points.

Possible values: {['blue', 'red'], array}

# color_type

Specifies whether the color scale is quantitative or qualitative. By setting this option to category, you can color the points according to some other discrete value. Take a look at the examples to see how to use this option.

Possible values: {number, category}

# point_size

The radius of the dots in the scatterplot.

Possible values: {2.5, number}

# size_accessor

The data element to map points' sizes to.

Possible values: {null, string}

# size_range

Specifies the range of point sizes, when point sizes are mapped to data.

Possible values: {[1,5], array}

# lowess

Specifies whether to show a lowess line of best fit (to be added in v1.1).

Possible values: {false, true}

# ls

Specifies whether to show a least-squares line of best fit.

Possible values: {false, true}

Clone this wiki locally