4.5.0 • Published 3 days ago
@nightingale-elements/nightingale-linegraph-track v4.5.0
nightingale-linegraph-track
Nightingale line graph track component is used to display multiple line graphs (either linear or d3 curves).
Usage
Include the componet in your HTML:
<nightingale-linegraph-track id="track" width="600" length="5" ></nightingale-linegraph-track>
Set the
data
in the component:await customElements.whenDefined("nightingale-linegraph-track"); const track = document.getElementById("track"); if (track) { (track as any).data = tinyData; }
API Reference
Properties
data: Array
The data expects the following structure.
{
name: String,
range:[min, max],
color?: Line color,
(color will be assigned if not provided. Use "none" for no line color)
fill?: Create area plot using given fill color (default "none"),
lineCurve?: 'curveLinear'(default)|'curveBasis'|'curveCardinal'|'curveStep'|'curveNatural',
(More curves - https://github.com/d3/d3-shape/blob/v2.0.0/README.md#curves)
values: [
{
position: Number,
value: Number
}
]
}
Other attributes and parameters
This component inherits from NightingaleElement
.
The component implements the following mixins: withManager
, withZoom
, withResizable
, withMargin
, withPosition
, withDimensions
, withHighlight
4.5.1-alpha.1
3 days ago
4.5.1-alpha.5
3 days ago
4.4.0-alpha.0
10 months ago
4.5.0-alpha.0
10 months ago
4.3.0-4.4.0-alpha.0.0
10 months ago
4.4.1-alpha.0
10 months ago
4.5.0
9 months ago
4.2.1-alpha.0
11 months ago
4.2.2-alpha.0
11 months ago
4.0.24-alpha.0
1 year ago
4.0.0
1 year ago
4.2.1
1 year ago
4.0.3
1 year ago
4.0.15-alpha.0
1 year ago
4.0.23-alpha.0
1 year ago
4.0.19-alpha.0
1 year ago
4.0.18-alpha.0
1 year ago
4.0.21-alpha.0
1 year ago
4.0.7-alpha.0
1 year ago
4.0.6-alpha.0
1 year ago
4.0.5-alpha.0
1 year ago
4.0.4-alpha.0
1 year ago
4.0.3-alpha.0
1 year ago
4.0.2-alpha.0
1 year ago
4.0.1-alpha.0
1 year ago
4.0.0-alpha.5
1 year ago