new Horizontal1DTrack(parentDOM, [margin={ top: HORIZONTAL1D_MARGIN_TOP, bottom: HORIZONTAL1D_MARGIN_BOTTOM, right: HORIZONTAL1D_MARGIN_RIGHT, left: HORIZONTAL1D_MARGIN_LEFT }], [options={ line_stroke_width: HORIZONTAL1D_LINE_STROKE_WIDTH, circle_radius: HORIZONTAL1D_CIRCLE_RADIUS }])
- Source:
Properties:
| Name | Type | Description |
|---|---|---|
baseDOM |
Document.Element | base DOM element that all other elements bind to |
width |
number | |
height |
number | |
svg |
svg | parent svg |
svgg |
g | g element that svg's transform to bind |
clip_path |
svg:clipPath | mask |
options |
Object | track options |
subscribe |
Array | events that this track has subscribed |
subscribers |
Array | object that subscribed this track |
behaviour |
String | current behaviour |
zoom_handler |
* | default zoom behaviour handler |
brush_handler |
* | default brush behaviour handler |
drag_handler |
* | default drag behaviour handler #Not implemented |
xAxis |
d3.axisBottom | |
yAxis |
d3.axisLeft | |
gX |
g | |
gY |
g | |
x_scale |
d3.scale | |
y_scale |
d3.scale |
Creates an instance of Horizontal1DTrack.
Parameters:
| Name | Type | Description |
|---|---|---|
parentDOM |
* | dom element that this track will bind to |
[margin={
top: HORIZONTAL1D_MARGIN_TOP,
bottom: HORIZONTAL1D_MARGIN_BOTTOM,
right: HORIZONTAL1D_MARGIN_RIGHT,
left: HORIZONTAL1D_MARGIN_LEFT
}] |
* | margin of this track |
[options={
line_stroke_width: HORIZONTAL1D_LINE_STROKE_WIDTH,
circle_radius: HORIZONTAL1D_CIRCLE_RADIUS
}] |
* | extra options of this track line_stroke_width is the line width circle_radius is the circle mark point's radius |