expressive-charts 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -25,6 +25,39 @@ From 0.1.0:
25
25
 
26
26
  Everything else can still change in a minor release while the library is 0.x: the motion core (`motion`, `createMotion`, the clocks, `tween`, `animated`, `playback`, and the types the list doesn't name), the charts, the adapters, the built-in effects and the controls. Those changes are listed here too. [docs/effects-guide.md](https://github.com/Deaversbp/expressive-charts/blob/main/docs/effects-guide.md) is the guide to the author API.
27
27
 
28
+ ## 0.5.0 (29 October 2026)
29
+
30
+ Curved lines and a hover on one point on the line chart, change labels that keep off other marks' labels, a negative column's value label off its name, curved Vega lines, and smaller pages for the motion core and `describe`. In the effect-author API, the one change is `nearbyLabels` on `MarkGeometry` and on the builders' specs, an addition. The other changes are outside the promise, and each says what to write instead, if anything.
31
+
32
+ ### Added
33
+
34
+ - **`nearbyLabels` on `MarkGeometry`**, under the 0.x promise, and on each builder's spec (`BarSpec`, `ArcSpec`, `LineSpec`, `PointSpec` and `ShapeSpec`): the boxes of other marks' text near a mark, which an effect's text should keep clear of as well as its own. `labelBounds` stays the boxes of the mark's own. Our line chart gives each line every other line's end label, and the donut each slice its neighbours' labels, the nearest each way round; bars and adapters give none. It's an optional field, an addition: code that builds a `MarkGeometry` needs no change, and an effect that ignores it works as before. The builders check it as they check `labelBounds`, with a `RangeError` naming the field, such as `nearbyLabels[0].x`.
35
+ - **`curve` on `lineChart`.** `"linear"`, the default, draws straight lines as before, the same marks byte for byte. `"monotone"` is d3's `curveMonotoneX`: a smooth curve through every value, flat between two equal ones, that never goes above or below the values either side, so a line shows no value the data doesn't have. Each run between gaps is curved on its own, and a run of two values is straight.
36
+ - A curved line is a polyline within 0.1 px of the curve, so its walk, gaps and reveal work as a straight line's, and no effect needs to change. Its samples are its rows' and one at each bend between them, each with its `at` and `value` on the curve, so `threshold` changes colour exactly where the drawn lines cross. A data effect that counts samples sees more than the rows on a curved line; `delta` and `label` read the ends, which are rows or the reveal.
37
+ - A reveal between two rows ends the line on the curve, so playback draws it in. A change eases the curve with the rows, and `update({ curve })` eases each line from straight to curved, or back, without going past its values; Off jumps.
38
+ - Anything but `"linear"` or `"monotone"` throws a `TypeError` naming it, and `update()` rejects it, changing nothing.
39
+
40
+ It's a new option, and a line without it has the samples it had, so no page needs to change.
41
+
42
+ - **Curved Vega lines.** `fromVegaView()` reads a line Vega draws with any `interpolate` but `"linear"`, such as `"monotone"`, `"basis"`, `"step"` or `"natural"`: the path Vega drew, read with `describe.shape` from its `d`, moved into the marks' coordinates as the items are, at the item's stroke width. Its gaps come with it, one at each move, and a curve Vega closes on itself (the `-closed` ones) is a closed shape. Its samples are at the items drawn, on the curve, so `threshold`'s crossings between them are approximate, as on a D3 curve. It used to throw. A straight line is read from its items as before, the same mark, so no page needs to change.
43
+ - **A hover on one point on the line chart,** `lineChart({ hover: "point" })`. The pointer anywhere over the plot, and touch, hover the revealed point nearest it, alone (of two as near, the series first in `series`), and leaving the plot leaves. Its line and their decorations stay at full strength, and every other line and point dims, with its decorations, unless `dim` is false; text keeps its contrast. There's no crosshair: the tooltip sits above the point, or below it without room, with the x and that series' value.
44
+ - The tooltip can be hovered from its point (WCAG 1.4.13). While it shows, the pointer stays on the hovered point while it's on its dot, though another point is nearer, and the tooltip's bridge reaches a px into its box, so the pointer goes straight from the point onto the tooltip without another point taking the hover on the way.
45
+ - The points are the focus stops, one tab stop, each named by its x and its value, or by `markLabel` given that series alone. Left and Right go along the line, passing over its missing values, Up and Down to the point above or below, by where they're drawn, Home and End to the line's ends, and Page Up and Page Down a page along it.
46
+ - Links still go by x, and a link's hover shows at every point there with nothing dimmed. `focus(key)` takes a point's key, or an x's.
47
+ - `update({ hover })` changes it at once: a held hover ends, and focus moves to the nearest stop of the new kind. Anything but `"x"` or `"point"` throws a `TypeError`, and `update()` rejects it.
48
+
49
+ The default, `"x"`, hovers every series at an x with the crosshair, as before, so no page needs to change.
50
+ - **A line chart's tooltip function is given the point's series** with `hover: "point"`, as a second argument, `(d, { series })`, for the tooltip's text and each point's description. With `"x"` it's given the row alone, so a function that takes the row alone still fits.
51
+
52
+ ### Changed
53
+
54
+ - **Smaller pages that import only the motion core or `describe`.** A page that imports `motion` and `animated` is 1.7 KB gzipped, not 2.4, and one that imports `describe` and `matrix` 6.6 KB, not 7.2. They kept the tables the charts build when the package loads, such as the stylesheet's text and the time axis's steps, which are now marked so a bundler drops them when they aren't used. The same marks make pages that import charts up to 0.1 KB smaller, and the script-tag bundle 0.2 KB. Nothing to write instead.
55
+
56
+ ### Fixed
57
+
58
+ - **`delta` and `label` keep off other marks' labels.** When two lines ended close together, with their end labels pushed apart, one line's text could land on the other's end label; now it goes past both. They still pick their way from the mark's own labels, so another mark's label only takes the text further that way, never turns it. And text centred on a point, within 45° of vertical, goes 6 px past a label's top or bottom, not past the side its way leaves through, where it could sit on the label it was placed past.
59
+ - **A negative column's value label no longer sits on its name.** The layout kept room under the plot for negative columns' value labels but drew the names in it, so the deepest column's value label was on its name. Now the names go below that room, and the plot keeps its height. A chart with no negative column draws as before. A `delta` on a negative column, past its name, reaches past the chart's bottom at 320 px (14.1 px in Chrome), as a column's does past the top; `room: 28` keeps it inside.
60
+
28
61
  ## 0.4.0 (27 October 2026)
29
62
 
30
63
  Attachments that swap their effects and end their hover as charts do, `expressive()` reading circles and other SVG shapes through the new `describe.shape`, a chart switch in a link, Vega lines with gaps, the icon sets' faded parts, and a build with tsdown. In the effect-author API, `describe.shape`, `ShapeSpec`, and `fillOpacity` and `strokeOpacity` on `IconShape` are additions, and `checkEffect`'s default data on a gap is a fix, under Fixed: an effect that joins across a gap can now fail, as it should. The other changes are outside the promise, and each says what to write instead, if anything.
package/README.md CHANGED
@@ -15,7 +15,7 @@ Composable motion and expressive effects for web charts. Hover, update and morph
15
15
 
16
16
  Each picture plays once and stops where its effect ends. **[The demo site](https://deaversbp.github.io/expressive-charts/)** has every effect to try, on the library's charts and on D3, Vega-Lite and hand-written ones, with the motion modes and reduced motion.
17
17
 
18
- > **Status: 0.4.0 (October 2026).** The effect-author API is under [the 0.x promise](#the-0x-promise); the charts, adapters, built-in effects and motion core can still change in a minor release. [CHANGELOG.md](https://github.com/Deaversbp/expressive-charts/blob/main/CHANGELOG.md#040-27-october-2026) lists what's new and what changed since 0.3.0.
18
+ > **Status: 0.5.0 (October 2026).** The effect-author API is under [the 0.x promise](#the-0x-promise); the charts, adapters, built-in effects and motion core can still change in a minor release. [CHANGELOG.md](https://github.com/Deaversbp/expressive-charts/blob/main/CHANGELOG.md#050-29-october-2026) lists what's new and what changed since 0.4.0.
19
19
 
20
20
  - **Effects first.** The mark effects `travel`, `flash`, `wiggle`, `pulse`, `trace` and the data effects `threshold`, `delta` and `label`, put together with `sequence`, `parallel`, `only` and `stagger`; and the transition effect `morph`, which `chartSwitch` plays to turn each mark of one chart into its mark in the next (a transition can't go into a combinator). An effect reads only a shared description of the mark, so one effect works on every chart, and effects of your own work everywhere the built-in ones do.
21
21
  - **Charts and adapters.** Bar, donut and line charts, a switch that morphs one into another, adapters that bring the same effects to SVG marks drawn by other code, and hover linked across them.
@@ -28,13 +28,13 @@ Each picture plays once and stops where its effect ends. **[The demo site](https
28
28
  npm install expressive-charts
29
29
  ```
30
30
 
31
- It has no runtime dependencies. It's an ES module and CommonJS, each with its own types, and its JavaScript has no side effects, so a bundler keeps only what a page imports: a bar chart is about 30 KB gzipped, and everything 76 KB.
31
+ It has no runtime dependencies. It's an ES module and CommonJS, each with its own types, and its JavaScript has no side effects, so a bundler keeps only what a page imports: a bar chart is about 31 KB gzipped, and everything 80 KB.
32
32
 
33
33
  On a page with no bundler, the script-tag bundle defines one global, `ExpressiveCharts`, holding the main entry:
34
34
 
35
35
  ```html
36
36
  <div id="sales"></div>
37
- <script src="https://cdn.jsdelivr.net/npm/expressive-charts@0.4/dist/expressive-charts.global.js"></script>
37
+ <script src="https://cdn.jsdelivr.net/npm/expressive-charts@0.5/dist/expressive-charts.global.js"></script>
38
38
  <script>
39
39
  const { barChart } = ExpressiveCharts;
40
40
  barChart("#sales", {
@@ -124,9 +124,9 @@ playButton("#play", season, { labels: { play: "Play season" } });
124
124
 
125
125
  [docs/api.md](https://github.com/Deaversbp/expressive-charts/blob/main/docs/api.md) documents every export, with its options, their defaults and what it returns.
126
126
 
127
- - **Charts.** [`barChart`](https://github.com/Deaversbp/expressive-charts/blob/main/docs/api.md#barchart) draws bars or columns, plain or stacked; [`donutChart`](https://github.com/Deaversbp/expressive-charts/blob/main/docs/api.md#donutchart) shares of a total; [`lineChart`](https://github.com/Deaversbp/expressive-charts/blob/main/docs/api.md#linechart) a line per series, on a number axis or, when `x` gives `Date`s, a time axis in UTC (or `timeZone: "local"`) worded in the page's locale, with a gap wherever a value is `null` or `undefined`. Each sizes itself to its container, follows the light or dark theme, and has a tooltip, a legend, a data table and keyboard focus. Its handle has `update()`, which animates a change by the motion mode, and `update({ on })` swaps its effects in place; `focus(key)`; `leave()`, which ends its hover; and `labels()`. `table.series` heads a series' column in the data table.
127
+ - **Charts.** [`barChart`](https://github.com/Deaversbp/expressive-charts/blob/main/docs/api.md#barchart) draws bars or columns, plain or stacked; [`donutChart`](https://github.com/Deaversbp/expressive-charts/blob/main/docs/api.md#donutchart) shares of a total; [`lineChart`](https://github.com/Deaversbp/expressive-charts/blob/main/docs/api.md#linechart) a line per series, straight or, with `curve: "monotone"`, curved through every value without going past it, on a number axis or, when `x` gives `Date`s, a time axis in UTC (or `timeZone: "local"`) worded in the page's locale, with a gap wherever a value is `null` or `undefined`, hovering every series at an x with a crosshair or, with `hover: "point"`, the one point nearest the pointer, the other lines dimmed. Each sizes itself to its container, follows the light or dark theme, and has a tooltip, a legend, a data table and keyboard focus. Its handle has `update()`, which animates a change by the motion mode, and `update({ on })` swaps its effects in place; `focus(key)`; `leave()`, which ends its hover; and `labels()`. `table.series` heads a series' column in the data table.
128
128
  - **Switching.** [`chartSwitch`](https://github.com/Deaversbp/expressive-charts/blob/main/docs/api.md#chartswitch) shows views of the same data one at a time, and turns each mark into its own mark in the next with [`morph()`](https://github.com/Deaversbp/expressive-charts/blob/main/docs/api.md#morph): a donut becoming columns, and back from wherever it is. Its `on()`, `marks()` and `leave()` are the view on show's, and it can be linked like a chart.
129
- - **Adapters.** [`expressive()`](https://github.com/Deaversbp/expressive-charts/blob/main/docs/api.md#expressive) reads keys, rows and geometry from SVG marks drawn by D3, Observable Plot or by hand, with only a key: rects as bars, circles as points, and paths, lines, polylines, polygons and ellipses as shapes, through their transforms. It draws on an overlay, leaving the host's styling alone; `watch: true` follows the host's own transitions. A curve, or a line drawn with d3's `.defined()`, is read from its own path data, with its gaps, and no effect draws inside them; `geometry` describes anything else, or a mark as you'd rather have it. Observable Plot binds each rect or dot to its row's index, so pass `datum: (el) => rows[el.__data__]`; Plot draws a new `<svg>` each time, so pass `refresh()` the new one's marks. The Plot accessors are tested against Plot 0.6.17. [`fromVegaView()`](https://github.com/Deaversbp/expressive-charts/blob/main/docs/api.md#fromvegaview) does the same for a Vega or Vega-Lite View rendered as SVG, and follows its renders; a line breaks where Vega-Lite leaves out a missing value. Both change their effects in place with `update({ on })`, as a chart does, and `leave()` ends their hover.
129
+ - **Adapters.** [`expressive()`](https://github.com/Deaversbp/expressive-charts/blob/main/docs/api.md#expressive) reads keys, rows and geometry from SVG marks drawn by D3, Observable Plot or by hand, with only a key: rects as bars, circles as points, and paths, lines, polylines, polygons and ellipses as shapes, through their transforms. It draws on an overlay, leaving the host's styling alone; `watch: true` follows the host's own transitions. A curve, or a line drawn with d3's `.defined()`, is read from its own path data, with its gaps, and no effect draws inside them; `geometry` describes anything else, or a mark as you'd rather have it. Observable Plot binds each rect or dot to its row's index, so pass `datum: (el) => rows[el.__data__]`; Plot draws a new `<svg>` each time, so pass `refresh()` the new one's marks. The Plot accessors are tested against Plot 0.6.17. [`fromVegaView()`](https://github.com/Deaversbp/expressive-charts/blob/main/docs/api.md#fromvegaview) does the same for a Vega or Vega-Lite View rendered as SVG, and follows its renders; a line breaks where Vega-Lite leaves out a missing value, and a curve is read from the path Vega draws. Both change their effects in place with `update({ on })`, as a chart does, and `leave()` ends their hover.
130
130
  - **Linked hover.** [`link()`](https://github.com/Deaversbp/expressive-charts/blob/main/docs/api.md#link) links hover across charts, chart switches and attachments by a value their marks share, such as a column's matchweek and the line's x there: hovering one hovers the others' marks with that value, with their emphasis, dimming and hover effects, as `source: "linked"`. Linked charts show no tooltip and take no focus.
131
131
  - **Effects.** [`travel`](https://github.com/Deaversbp/expressive-charts/blob/main/docs/api.md#travel) carries an icon along a mark; [`flash`](https://github.com/Deaversbp/expressive-charts/blob/main/docs/api.md#flash), [`wiggle`](https://github.com/Deaversbp/expressive-charts/blob/main/docs/api.md#wiggle) and [`pulse`](https://github.com/Deaversbp/expressive-charts/blob/main/docs/api.md#pulse) draw attention without changing a value; [`trace`](https://github.com/Deaversbp/expressive-charts/blob/main/docs/api.md#trace) draws a highlighter stroke along a mark and leaves it there; [`threshold`](https://github.com/Deaversbp/expressive-charts/blob/main/docs/api.md#threshold) colours the parts of a mark below or above a reference; [`delta`](https://github.com/Deaversbp/expressive-charts/blob/main/docs/api.md#delta) labels a mark's change since the last update ("+2"), and [`label`](https://github.com/Deaversbp/expressive-charts/blob/main/docs/api.md#label) any text worked out from its data, past the mark's own labels. Each goes in an effect slot (`hover`, `enter`, `update`, `exit`, `decorate`), as an effect or a preset's name (`"wiggle"`).
132
132
  - **Controls.** [`motionSwitch()`](https://github.com/Deaversbp/expressive-charts/blob/main/docs/api.md#motionswitch) is the viewer's own choice of mode. [`playback()`](https://github.com/Deaversbp/expressive-charts/blob/main/docs/api.md#playback) plays a value through a range, and [`playButton()`](https://github.com/Deaversbp/expressive-charts/blob/main/docs/api.md#playbutton) is its Play/Pause button.
@@ -60,6 +60,12 @@ interface MarkGeometry {
60
60
  * Unset when nothing says where they are (segments, points, and marks the library didn't draw).
61
61
  */
62
62
  readonly labelBounds?: readonly Rect[];
63
+ /**
64
+ * The boxes of other marks' text near this one, which an effect's text should keep clear of too:
65
+ * a line's are the other lines' end labels, a slice's its neighbours' labels either side. Unset
66
+ * when none is known (bars, segments, points, and marks the library didn't draw).
67
+ */
68
+ readonly nearbyLabels?: readonly Rect[];
63
69
  /** Ordered parts, from the baseline (goals, then assists). Every bar has at least one. */
64
70
  readonly segments?: readonly MarkGeometry[];
65
71
  }
@@ -205,4 +211,4 @@ interface Layer {
205
211
  text(content: string, style: TextStyle): TextHandle;
206
212
  }
207
213
  export { Rect as _, MarkStyle as a, PathHandle as c, Icon as d, IconShape as f, Point as g, Outline as h, MarkHandle as i, TextHandle as l, MarkGeometry as m, IconHandle as n, Matrix as o, IconSource as p, Layer as r, Paint as s, Color as t, TextStyle as u };
208
- //# sourceMappingURL=drawing-Dz_IvJPB.d.ts.map
214
+ //# sourceMappingURL=drawing-Ypmq-2h6.d.cts.map
@@ -60,6 +60,12 @@ interface MarkGeometry {
60
60
  * Unset when nothing says where they are (segments, points, and marks the library didn't draw).
61
61
  */
62
62
  readonly labelBounds?: readonly Rect[];
63
+ /**
64
+ * The boxes of other marks' text near this one, which an effect's text should keep clear of too:
65
+ * a line's are the other lines' end labels, a slice's its neighbours' labels either side. Unset
66
+ * when none is known (bars, segments, points, and marks the library didn't draw).
67
+ */
68
+ readonly nearbyLabels?: readonly Rect[];
63
69
  /** Ordered parts, from the baseline (goals, then assists). Every bar has at least one. */
64
70
  readonly segments?: readonly MarkGeometry[];
65
71
  }
@@ -205,4 +211,4 @@ interface Layer {
205
211
  text(content: string, style: TextStyle): TextHandle;
206
212
  }
207
213
  export { Rect as _, MarkStyle as a, PathHandle as c, Icon as d, IconShape as f, Point as g, Outline as h, MarkHandle as i, TextHandle as l, MarkGeometry as m, IconHandle as n, Matrix as o, IconSource as p, Layer as r, Paint as s, Color as t, TextStyle as u };
208
- //# sourceMappingURL=drawing-Dz_IvJPB.d.cts.map
214
+ //# sourceMappingURL=drawing-Ypmq-2h6.d.ts.map
@@ -1,4 +1,4 @@
1
- import { i as MarkHandle, m as MarkGeometry, p as IconSource, r as Layer } from "./drawing-Dz_IvJPB.cjs";
1
+ import { i as MarkHandle, m as MarkGeometry, p as IconSource, r as Layer } from "./drawing-Ypmq-2h6.cjs";
2
2
  /** Where frames come from. The default uses requestAnimationFrame, or a 16 ms timer outside the browser. */
3
3
  interface FrameSource {
4
4
  now(): number;
@@ -229,4 +229,4 @@ type Combined<E extends readonly AnyMarkEffect[]> = [Extract<E[number], {
229
229
  kind: "data";
230
230
  }>] extends [never] ? GeometryEffect : DataEffect<AllRowNeeds<E>>;
231
231
  export { Easing as A, ScalingTable as C, mediaReducedMotion as D, defaultScaling as E, FrameSource as F, ManualClock as I, createClock as L, easeOutCubic as M, linear as N, motion as O, Clock as P, defaultClock as R, ScalingRule as S, createMotion as T, MotionMode as _, GeometryEffect as a, ReducedMotionSource as b, TransitionEffect as c, MotionEnv as d, Tween as f, Motion as g, tween as h, EffectContext as i, easeInOutCubic as j, scaleDuration as k, MarkData as l, TweenResult as m, Combined as n, MarkEffect as o, TweenOptions as p, DataEffect as r, TransitionContext as s, AnyMarkEffect as t, Sample as u, MotionOptions as v, Timing as w, ScalingOverrides as x, MotionView as y, manualClock as z };
232
- //# sourceMappingURL=effect-uYC8Vs6_.d.cts.map
232
+ //# sourceMappingURL=effect-C786hGyJ.d.cts.map
@@ -1,4 +1,4 @@
1
- import { i as MarkHandle, m as MarkGeometry, p as IconSource, r as Layer } from "./drawing-Dz_IvJPB.js";
1
+ import { i as MarkHandle, m as MarkGeometry, p as IconSource, r as Layer } from "./drawing-Ypmq-2h6.js";
2
2
  /** Where frames come from. The default uses requestAnimationFrame, or a 16 ms timer outside the browser. */
3
3
  interface FrameSource {
4
4
  now(): number;
@@ -229,4 +229,4 @@ type Combined<E extends readonly AnyMarkEffect[]> = [Extract<E[number], {
229
229
  kind: "data";
230
230
  }>] extends [never] ? GeometryEffect : DataEffect<AllRowNeeds<E>>;
231
231
  export { Easing as A, ScalingTable as C, mediaReducedMotion as D, defaultScaling as E, FrameSource as F, ManualClock as I, createClock as L, easeOutCubic as M, linear as N, motion as O, Clock as P, defaultClock as R, ScalingRule as S, createMotion as T, MotionMode as _, GeometryEffect as a, ReducedMotionSource as b, TransitionEffect as c, MotionEnv as d, Tween as f, Motion as g, tween as h, EffectContext as i, easeInOutCubic as j, scaleDuration as k, MarkData as l, TweenResult as m, Combined as n, MarkEffect as o, TweenOptions as p, DataEffect as r, TransitionContext as s, AnyMarkEffect as t, Sample as u, MotionOptions as v, Timing as w, ScalingOverrides as x, MotionView as y, manualClock as z };
232
- //# sourceMappingURL=effect-CdH5449m.d.ts.map
232
+ //# sourceMappingURL=effect-CMo-2gPf.d.ts.map
@@ -100,18 +100,19 @@
100
100
  :where(.ec-chart .ec-hot .ec-segment) { fill: var(--ec-mark-strong); }
101
101
  :where(.ec-chart .ec-stroke) { fill: none; stroke: var(--ec-mark); stroke-linejoin: round; transition: stroke var(--ec-hover-duration, 100ms) ease-out, opacity var(--ec-hover-duration, 100ms) ease-out; }
102
102
  :where(.ec-chart .ec-hot .ec-stroke) { stroke: var(--ec-mark-strong); }
103
- :where(.ec-chart .ec-end) { fill: var(--ec-mark); stroke: var(--ec-surface, #fcfcfb); stroke-width: 2; }
103
+ :where(.ec-chart .ec-end) { fill: var(--ec-mark); stroke: var(--ec-surface, #fcfcfb); stroke-width: 2; transition: opacity var(--ec-hover-duration, 100ms) ease-out; }
104
104
  :where(.ec-chart .ec-dot) { fill: var(--ec-mark); stroke: var(--ec-surface, #fcfcfb); stroke-width: 2; opacity: 0; transition: opacity var(--ec-hover-duration, 100ms) ease-out, fill var(--ec-hover-duration, 100ms) ease-out; }
105
105
  :where(.ec-chart .ec-hot .ec-dot) { fill: var(--ec-mark-strong); opacity: 1; }
106
106
  :where(.ec-chart .ec-alone .ec-dot) { opacity: 1; }
107
107
  :where(.ec-chart .ec-crosshair) { stroke: var(--ec-axis, #c3c2b7); stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
108
- :where(.ec-chart .ec-column:focus) { outline: none; }
108
+ :where(.ec-chart .ec-column:focus, .ec-chart .ec-stop:focus) { outline: none; }
109
109
  :where(.ec-chart .ec-lines, .ec-chart .ec-points) { pointer-events: none; }
110
110
  :where(.ec-chart .ec-slice) { fill: var(--ec-mark); stroke: var(--ec-surface, #fcfcfb); stroke-width: 2; stroke-linejoin: round; transition: fill var(--ec-hover-duration, 100ms) ease-out, opacity var(--ec-hover-duration, 100ms) ease-out; }
111
111
  :where(.ec-chart .ec-hot .ec-slice) { fill: var(--ec-mark-strong); }
112
112
  :where(.ec-chart .ec-center-value) { fill: var(--ec-text, #0b0b0b); font-size: 26px; font-weight: 600; }
113
113
  :where(.ec-chart .ec-center-label) { fill: var(--ec-text-muted, #75736d); font-size: 12.5px; }
114
114
  :where(.ec-chart.ec-hovering .ec-mark:not(.ec-hot) > .ec-body > *) { opacity: var(--ec-dim-opacity, 0.3); }
115
+ :where(.ec-chart.ec-hovering .ec-line:not(.ec-hot-line) > .ec-body > *, .ec-chart.ec-hovering .ec-alone:not(.ec-hot) > .ec-body > *) { opacity: var(--ec-dim-opacity, 0.3); }
115
116
  :where(.ec-hovering .ec-run:not(.ec-hot) > .ec-follow) { opacity: var(--ec-dim-opacity, 0.3); }
116
117
  :where(.ec-follow) { transition: opacity var(--ec-hover-duration, 100ms) ease-out; }
117
118
  :where(.ec-chart.ec-morphing .ec-marks) { visibility: hidden; }