Skip to content

Semiotic v3.14.1

Latest

Choose a tag to compare

@github-actions github-actions released this 20 Nov 00:02
· 216 commits to main since this release

Added

  • ForecastConfig options for the auto-mode boundary line at trainEnd:
    boundaryColor, boundaryDasharray, boundaryLabel (false keeps the line
    without a label) and showBoundary: false to omit it, and for its label,
    boundaryLabelColor and boundaryLabelBackground (an annotation
    labelBackground, such as { type: "box", fill }). The defaults keep
    today's #94a3b8 dashed line labeled "Train / Forecast" in the line's color
    on a halo, and the browser, semiotic/server and semiotic/server/edge draw
    it the same way.
    [source: consumer: themed LineChart wrapper whose dark and brand themes restyle every forecast overlay]
  • The anomaly overlay sets ANOMALY_FIELD ("__anomaly") to true on each
    row it draws a dot for, on LineChart, AreaChart, Scatterplot and
    ConnectedScatterplot in the browser and in renderChart, so a tooltip's
    hover datum and allSeries[i].datum say whether the point is a computed
    outlier. The dots and the mark share one rule.
    [source: consumer: custom multi tooltip that flags computed anomalies]
  • semiotic/xy and semiotic/line export the row field names the overlays
    write: FORECAST_SEGMENT_FIELD, ANOMALY_FIELD, RESOLVED_X_FIELD and
    RESOLVED_Y_FIELD, and the ForecastSegment type.
    [source: consumer: custom multi tooltip that flags computed anomalies]
  • A controlled XY brush: brushExtent on StreamXYFrame, LineChart and
    StackedAreaChart takes the shape onBrush reports ({ x: [start, end] }
    for an x brush), null clears it, and leaving it unset keeps today's
    uncontrolled brush. onBrushEnd(extent, { source, atDomainStart, atDomainEnd })
    fires once per pointer release, keyboard step or reset that changed the
    selection. StackedAreaChart gains brush, onBrush and linkedBrush, as
    on LineChart. semiotic/xy and semiotic/line export the XYBrushExtent,
    XYBrushExtentInput and XYBrushEndMeta types. The value-axis brush on
    StreamOrdinalFrame and Histogram takes the same brushExtent
    ({ r: [min, max] }, null clears it) and onBrushEnd, with atDomainStart
    / atDomainEnd on the value axis, and semiotic/ordinal exports the
    OrdinalBrushExtent, OrdinalBrushExtentInput and OrdinalBrushEndMeta
    types. Both brushes stay browser-only.
    [source: consumer: themed LineChart wrapper that commits a controlled time-range brush on release]

Fixed

  • A key the frame brush handles (arrows, Shift+arrows, Escape) no longer also
    moves the chart's keyboard focus and hover: on LineChart,
    StackedAreaChart, Scatterplot and other XY brushes, and on the
    value-axis brush of Histogram and the other ordinal charts, the brush
    keeps the key. Keys pressed on the chart itself still navigate it.
    [source: consumer: design-system LineChart and histogram wrappers with keyboard brushing]
  • showCategoryTicks: false hides the category axis's ticks and labels in
    renderChart (semiotic/server and semiotic/server/edge) as it does in
    the browser, on every ordinal chart with a category axis. In the browser,
    StackedBarChart, GroupedBarChart, DotPlot and LikertChart now pass
    it to their frame too: they had shrunk the margin for it but still drew the
    labels. A vertical FunnelChart keeps labelling its steps on both paths.
    [source: consumer: design-system histogram wrapper rendered server-side for design files]