@lilt-ui/charts 0.13.0 → 0.13.1
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 +6 -0
- package/README.md +21 -14
- package/dist/cards/cartesian-card.d.ts +1 -1
- package/dist/finance.js +1 -1
- package/package.json +10 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.13.1
|
|
4
|
+
|
|
5
|
+
- `PriceChartCard` now honors `formatValue` for prices. Instrument comparisons continue to use signed percentages.
|
|
6
|
+
- Documentation examples preserve every preview row and timestamp, including period choices and the home page's selected chart. Copyable files include the client directive.
|
|
7
|
+
- Completed card prop tables, corrected defaults and feature claims, and expanded the npm README and agent references to include the current chart families and companion forms.
|
|
8
|
+
|
|
3
9
|
## 0.13.0
|
|
4
10
|
|
|
5
11
|
Twenty-three new chart families drawn in depth, fourteen new forms for existing charts, and Watch is removed.
|
package/README.md
CHANGED
|
@@ -76,7 +76,7 @@ export function VisitorsCard() {
|
|
|
76
76
|
}
|
|
77
77
|
```
|
|
78
78
|
|
|
79
|
-
|
|
79
|
+
The headline, value tiles, and hover come from your rows. Supply `delta` when you want a change chip, for example `delta={0.082}` for +8.2%. `x` and each series `key` are checked against your data, so a typo is a type error, not a blank chart.
|
|
80
80
|
|
|
81
81
|
## Every card, finished
|
|
82
82
|
|
|
@@ -85,16 +85,21 @@ That's the whole card: the headline, the change chip, value tiles, and hover all
|
|
|
85
85
|
<img alt="Stat cards with sparklines, bars, and a goal meter above a needle bar chart and a retention heatmap" src="https://cdn.jsdelivr.net/npm/@lilt-ui/charts/media/cards-dark.webp" />
|
|
86
86
|
</picture>
|
|
87
87
|
|
|
88
|
-
| For | Cards
|
|
89
|
-
| -------------------- |
|
|
90
|
-
| **Trends** | Area, Line, Bar, and Combo cards, overlapping, stacked, or as shares
|
|
91
|
-
| **At a glance** | Stat cards with a sparkline, bars, a meter, or a ring
|
|
92
|
-
| **Parts and goals** | Radial, Treemap, Progress, and Activity ring
|
|
93
|
-
| **Rankings** | Horizontal bar, with shares and an "Other" row
|
|
94
|
-
| **Flows and change** | Funnel, Sankey, and Slope
|
|
95
|
-
| **Patterns** | Heatmap (matrix and calendar), Scatter (points, strip, beeswarm), Radar
|
|
96
|
-
| **Spread** | Range (floating bars, error bars, timeline intervals) and Box plot
|
|
97
|
-
| **Markets** | Candlestick, Indicators, Price, Depth, Order book, and Portfolio
|
|
88
|
+
| For | Cards |
|
|
89
|
+
| -------------------- | ----------------------------------------------------------------------------------------------- |
|
|
90
|
+
| **Trends** | Area, Line, Bar, and Combo cards, overlapping, stacked, or as shares |
|
|
91
|
+
| **At a glance** | Stat cards with a sparkline, bars, a meter, or a ring |
|
|
92
|
+
| **Parts and goals** | Radial, Treemap, Progress, and Activity ring |
|
|
93
|
+
| **Rankings** | Horizontal bar, with shares and an "Other" row |
|
|
94
|
+
| **Flows and change** | Funnel, Sankey, and Slope |
|
|
95
|
+
| **Patterns** | Heatmap (matrix and calendar), Scatter (points, strip, beeswarm), Radar |
|
|
96
|
+
| **Spread** | Range (floating bars, error bars, timeline intervals) and Box plot |
|
|
97
|
+
| **Markets** | Candlestick, Indicators, Price, Depth, Order book, and Portfolio |
|
|
98
|
+
| **Cool** | 23 spatial families, from Skyline and Terrain to Chord loom, Sunburst terraces, and Voxel cloud |
|
|
99
|
+
|
|
100
|
+
### Charts drawn in depth
|
|
101
|
+
|
|
102
|
+
[Explore the Cool families](https://liltui.vercel.app/charts/skyline): Skyline, Block city, Hex city, Voxel waffle, Terrain, Ridgeline, Spiral year, Event helix, Chord loom, Arc bridges, Rank ribbons, Parallel ribbons, Contour islands, Sunburst terraces, Cluster constellation, Ternary prism, Wind rose, Marimekko blocks, Intersection towers, Horizon folds, Circle archipelago, Helix ribbons, and Voxel cloud. Each is its own card with its own data contract.
|
|
98
103
|
|
|
99
104
|
### Companion cards
|
|
100
105
|
|
|
@@ -102,6 +107,8 @@ That's the whole card: the headline, the change chip, value tiles, and hover all
|
|
|
102
107
|
|
|
103
108
|
They take the same `depth`, loading, empty, and header props as every other card, plus `onSelectionChange` and `renderReadout` for your own presentation. Treemap areas must be nonnegative, calendar dates are UTC, and timeline durations are measured in milliseconds (displayed as hours by default).
|
|
104
109
|
|
|
110
|
+
Existing family pages also cover `StreamgraphCard`, `DivergingBarCard`, `MirroredBarCard`, `NestedDonutCard`, `ComparativeFunnelCard`, `GoalPacingCard`, `MilestoneProgressCard`, `ViolinCard`, and `CorrelationMatrixCard`. Line supports indexed growth; Line and unstacked Area accept supplied forecast bands; Horizontal Bar supports lollipops; Scatter supports ordered trails; and Treemap supports group drill-down.
|
|
111
|
+
|
|
105
112
|
## Finance charts
|
|
106
113
|
|
|
107
114
|
Candlesticks, indicators, and order books ship from their own entry point, so apps that never draw a candle never load one:
|
|
@@ -160,9 +167,9 @@ Candles draw into a handful of paths however many there are, so years of daily h
|
|
|
160
167
|
|
|
161
168
|
## Built in, one prop away
|
|
162
169
|
|
|
163
|
-
- **Linked hover.**
|
|
164
|
-
- **Targets and forecasts.** `target` draws a goal line and counts the points that reach it. `forecast` marks projected rows and keeps them out of the headline.
|
|
165
|
-
- **Pin and compare.**
|
|
170
|
+
- **Linked hover.** Cards with `sync`, including Area, Line, Bar, Combo, and Stat, read the same moment together. Stat also needs `x`.
|
|
171
|
+
- **Targets and forecasts.** On Area, Line, Bar, and Combo cards, `target` draws a goal line and counts the points that reach it. `forecast` marks supplied projected rows and keeps them out of the headline. Lilt does not estimate forecasts.
|
|
172
|
+
- **Pin and compare.** On cards with inspection, click a mark to pin it; press off the marks, or Escape, to let go. Cards with `compare` let you drag across the plot to see what changed, in the headline or, with `compare="badge"`, in the card's tab. Check the family's props for availability.
|
|
166
173
|
- **Honest data.** `null` is a gap, never a zero, and missing values say so.
|
|
167
174
|
- **Loading and empty.** `loading` shows a skeleton that `"shimmer"`s, `"draw"`s, or `"breathe"`s in the chart's own shape, then hands over to the data. A period with no rows shows a still empty state, or your own with `empty`, and the headline reads a dash, never zero.
|
|
168
175
|
- **Long series.** Line and area cards draw tens of thousands of points from four per pixel column; hover, tiles, and exports still read every row.
|
|
@@ -116,7 +116,7 @@ export interface CartesianCardProps<Row, Key extends NumericKey<Row>> {
|
|
|
116
116
|
/**
|
|
117
117
|
* Draw a long line or area from each pixel column's first, last, lowest and highest
|
|
118
118
|
* observation, so tens of thousands of points stay fast to hover. The ink is the same, and the
|
|
119
|
-
* headline, tiles, hover
|
|
119
|
+
* headline, tiles, hover and exports still read every row. Defaults to true.
|
|
120
120
|
*/
|
|
121
121
|
decimate?: boolean;
|
|
122
122
|
/** Card treatment: `elevated` (default), `outline`, or `ghost` inside your own card. */
|
package/dist/finance.js
CHANGED
|
@@ -1107,7 +1107,7 @@ function Pe({ price: e, symbol: t, name: n, icon: r, display: i = "area", versus
|
|
|
1107
1107
|
style: "percent",
|
|
1108
1108
|
maximumFractionDigits: 1
|
|
1109
1109
|
} : u,
|
|
1110
|
-
formatValue: m ? (e) => h(S)(e) :
|
|
1110
|
+
formatValue: m ? (e) => h(S)(e) : p.formatValue,
|
|
1111
1111
|
locale: d,
|
|
1112
1112
|
aggregate: "last",
|
|
1113
1113
|
headlineSeries: C(e),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lilt-ui/charts",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"description": "Beautiful, key-typed React chart cards with linked hover, targets, forecasts, finance charts, and calm motion.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -54,15 +54,6 @@
|
|
|
54
54
|
"sideEffects": [
|
|
55
55
|
"./dist/styles.css"
|
|
56
56
|
],
|
|
57
|
-
"scripts": {
|
|
58
|
-
"build": "vite build",
|
|
59
|
-
"prepublishOnly": "pnpm build",
|
|
60
|
-
"typecheck": "tsc --noEmit && pnpm build && pnpm run typecheck:consumer",
|
|
61
|
-
"typecheck:consumer": "tsc --noEmit --strict --target ES2022 --module ESNext --moduleResolution Bundler --skipLibCheck consumer/typecheck.ts",
|
|
62
|
-
"lint": "eslint src",
|
|
63
|
-
"test": "pnpm build && vitest run",
|
|
64
|
-
"format:check": "prettier --check src vite.config.ts tsconfig.json"
|
|
65
|
-
},
|
|
66
57
|
"dependencies": {
|
|
67
58
|
"@number-flow/react": "^0.6.2",
|
|
68
59
|
"d3-array": "^3.2.4",
|
|
@@ -76,5 +67,13 @@
|
|
|
76
67
|
"peerDependencies": {
|
|
77
68
|
"react": "^19.0.0",
|
|
78
69
|
"react-dom": "^19.0.0"
|
|
70
|
+
},
|
|
71
|
+
"scripts": {
|
|
72
|
+
"build": "vite build",
|
|
73
|
+
"typecheck": "tsc --noEmit && pnpm build && pnpm run typecheck:consumer",
|
|
74
|
+
"typecheck:consumer": "tsc --noEmit --strict --target ES2022 --module ESNext --moduleResolution Bundler --skipLibCheck consumer/typecheck.ts",
|
|
75
|
+
"lint": "eslint src",
|
|
76
|
+
"test": "pnpm build && vitest run",
|
|
77
|
+
"format:check": "prettier --check src vite.config.ts tsconfig.json"
|
|
79
78
|
}
|
|
80
|
-
}
|
|
79
|
+
}
|