Reference Source
public class | source

Key

The Key shows how the colors represent the data

Constructor Summary

Public Constructor
public

constructor(d3Container: Object, aValues: Array, iOffsetX: Integer, iOffsetY: Integer)

Constructor function that sets up the local object.

Member Summary

Public Members
public

The key's values

public

d3 object for axis container

public

The x offset for the key

public

The y offset for the key

Method Summary

Public Methods
public

position(): *

Set the position of the key

public

render(): *

Render the key showing the labels for the color values

Public Constructors

public constructor(d3Container: Object, aValues: Array, iOffsetX: Integer, iOffsetY: Integer) source

Constructor function that sets up the local object.

Params:

NameTypeAttributeDescription
d3Container Object

A d3 wrapped container element

aValues Array

the data to be displayed

iOffsetX Integer

optional x offset

iOffsetY Integer

optional y offset

Public Members

public aValues: Array source

The key's values

Properties:

NameTypeAttributeDescription
aValues *

public d3Container: Object source

d3 object for axis container

Properties:

NameTypeAttributeDescription
d3Container *

public iOffsetX: Number source

The x offset for the key

Properties:

NameTypeAttributeDescription
iOffsetX *

public iOffsetY: Number source

The y offset for the key

Properties:

NameTypeAttributeDescription
iOffsetY *

Public Methods

public position(): * source

Set the position of the key

Return:

*

public render(): * source

Render the key showing the labels for the color values

Return:

*