Class pv.Dot
Extends
pv.Mark.
Represents a dot; a dot is simply a sized glyph centered at a given
point that can also be stroked and filled. The size property is
proportional to the area of the rendered glyph to encourage meaningful visual
encodings. Dots can visually encode up to eight dimensions of data, though
this may be unwise due to integrality. See pv.Mark for details on the
prioritization of redundant positioning properties.
See also the Dot guide.
Defined in: Dot.js.
Constructor Attributes | Constructor Name and Description |
---|---|
pv.Dot()
Constructs a new dot mark with default properties.
|
Field Attributes | Field Name and Description |
---|---|
The rotation angle, in radians.
|
|
Default properties for dots.
|
|
The fill style; if non-null, the interior of the dot is filled with the
specified color.
|
|
The width of stroked lines, in pixels; used in conjunction with
strokeStyle to stroke the dot's shape.
|
|
The radius of the dot, in pixels.
|
|
The shape name.
|
|
The size of the dot, in square pixels.
|
|
The style of stroked lines; used in conjunction with lineWidth to
stroke the dot's shape.
|
- Fields borrowed from class pv.Mark:
- bottom, childIndex, cursor, data, events, index, left, parent, proto, reverse, right, root, scale, title, top, type, visible
Method Attributes | Method Name and Description |
---|---|
anchor(name)
Constructs a new dot anchor with default properties.
|
- See:
- pv.color
- See:
- #size
- cross
- triangle
- diamond
- square
- circle
- tick
- bar
Note: it may be more natural to use the pv.Rule mark for horizontal and vertical ticks. The tick shape is only necessary if angled ticks are needed.
- See:
- #radius
- See:
- pv.color
- top
- left
- center
- bottom
- right
For consistency with the other mark types, the anchor positions are defined in terms of their opposite edge. For example, the top anchor defines the bottom property, such that a bar added to the top anchor grows upward.
- Parameters:
- {string} name
- the anchor name; either a string or a property function.
- Returns:
- {pv.Anchor}