Node / Charts · guide
Line chart
Current Apexify.js 6.0.0 documentation for Line chart.
LineDataPoint
x, y (required), label, markerColor, showMarker, errorBar (positive, negative, color, width, capSize, show).
LineSeries
| Field | Purpose |
|---|---|
label, data | Series identity + points. |
color, gradient | Stroke (gradient via createGradientFill along bbox). |
lineWidth, lineStyle | LineStyle: solid, dashed, dotted, dashdot, longdash, shortdash, dashdotdot, step, stepline. |
smoothness | none | bezier | spline. |
smoothnessTension | 0…1 (Chart.js-style); feeds Bézier spacing (default ~0.35 when omitted internally). |
showLine | Toggle polyline. |
marker | type: circle | square | triangle | diamond | cross | none — size, color, show, filled. |
area | AreaConfig — fill under/over/between — see below. |
correlation | Regression overlay (linear, polynomial, exponential, logarithmic, none) — degree for polynomial. |
errorBar | Series-level defaults for caps (point errorBar overrides). |
opacity | 0…1 for line + markers + area + correlation (overrides options.lines.opacity). |
AreaConfig
type | Meaning |
|---|---|
none | No fill |
below | To baseline |
above | Above baseline |
between | Between series and secondLine (another LineSeries) |
around | Band-style (uses upperBound/lowerBound arrays when wired) |
Also color, opacity, show, toValue, showAreaSize, areaSizeColor.
AxisConfig (rich — X / Y)
Beyond bar Axis subset:
| Field | Notes |
|---|---|
showTickMarks, showTickLabels | Toggle numeric/grid labeling on X. |
scale | linear (default) or log. |
dateFormat, dateTime | Timestamp fillText formatting (YYYY/MM/DD, HH:mm:ss, …). |
baseline | Y baseline intercept where applicable. |
arrowExtensionPastMaxTickPx, arrowTipOffsetY | Declared; Y-axis arrow currently disabled in renderer — ignore until wired. |
LineChartOptions
dimensions, appearance, axes.{x,y}, labels.title, labels.pointLabelDefaults (position: top…), legend (fit, minWidth, width), grid, lines.opacity (series default).
Example — multi-series + markers
Example — area below + correlation
Example — per-point error bars
Point-level errorBar overrides series defaults; caps respect positive / negative magnitudes.
Example — log Y axis
Both axes support scale: 'log' when domain stays positive where log mapping applies.
Example — datetime X (dateTime + dateFormat)
Use axes.x.dateTime: true with dateFormat for tick fillText (see AxisConfig in linechart.ts).
Example — area.type: 'between' (two series)
between fills between the host series and area.secondLine — aligned x on both LineSeries data arrays.