@lilt-ui/charts 0.7.0 → 0.8.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
@@ -1,5 +1,27 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.8.0
4
+
5
+ A new tooltip, a dotted y axis, a band that lights the hovered column, and a readout that never covers the marks.
6
+
7
+ ### Hover
8
+
9
+ - The tooltip's date sits in a recessed well, and each row reads marker, name, value, with the value right after its name. The panel hugs its rows.
10
+ - With a tooltip or strip readout, the crosshair turns dotted and hovered points become rings. Pills keep their filled hover dots.
11
+ - `hover="strip"` docks the reading in a one-line capsule above the plot, centered on the crosshair, so it never covers the marks. The headline rests, as with the tooltip. `Tooltip` takes `layout: 'strip'`.
12
+ - Bar and column charts light the inspected column with a soft band behind its bars, arriving in step with the bars that light up. `spotlight={false}` turns it off along with the background spotlight.
13
+ - When no pill covers it, the inspected observation's x label brightens.
14
+
15
+ ### Axes
16
+
17
+ - `axis="dots"` now labels the y axis: each label sits in a gutter with a node and a dotted leader across the plot, and the value pill sits on the axis. The x axis keeps its dot under every observation. Loading skeletons match.
18
+
19
+ ## 0.7.1
20
+
21
+ ### Fixes
22
+
23
+ - Charts inside a CSS-transformed container lay out at their real size instead of the scaled one. Charts in dialogs that scale in, zoom-to-fit dashboards and scaled previews were drawn squashed: the Cartesian plot, Sankey, Radar, Scatter, Slope, Activity Ring and the Funnel's depth look. Untransformed charts measure exactly as before.
24
+
3
25
  ## 0.7.0
4
26
 
5
27
  Long lines and areas stay smooth to hover from a hundred points to a hundred thousand.
@@ -116,7 +116,10 @@ export interface CartesianCardProps<Row, Key extends NumericKey<Row>> {
116
116
  axis?: ChartAxis;
117
117
  /** Texture behind the plot: `dots` (default), `grid`, `lines`, or `none`. */
118
118
  background?: ChartBackground;
119
- /** Brighten the background around the hovered point. Defaults to true. */
119
+ /**
120
+ * Light up what is under the pointer: the background around a point, and on bar charts the
121
+ * whole column. Defaults to true.
122
+ */
120
123
  spotlight?: boolean;
121
124
  /**
122
125
  * Draw a long line or area from each pixel column's first, last, lowest and highest
@@ -145,7 +148,8 @@ export interface CartesianCardProps<Row, Key extends NumericKey<Row>> {
145
148
  axisInset?: number;
146
149
  /**
147
150
  * What the hovered point shows, one readout at a time: `pills` (default) on the axes, a
148
- * `tooltip` with every series, or `headline`, which leaves the plot to the hover dots.
151
+ * `tooltip` with every series, a `strip` docked above the plot, or `headline`, which leaves the
152
+ * plot to the hover dots.
149
153
  */
150
154
  hover?: ChartHoverReadout;
151
155
  /** How the pills or tooltip look: `soft` (default), `solid`, or `accent`. */