@wick-charts/react 0.3.6 → 0.4.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/README.md +6 -6
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +782 -344
- package/dist/index.js +4926 -4157
- package/package.json +3 -3
- package/src/BarSeries.tsx +18 -56
- package/src/CandlestickSeries.tsx +11 -57
- package/src/ChartContainer.tsx +80 -51
- package/src/LineSeries.tsx +18 -56
- package/src/PieSeries.tsx +1 -2
- package/src/index.ts +8 -4
- package/src/ui/Crosshair.tsx +5 -1
- package/src/ui/InfoBar.tsx +35 -1
- package/src/ui/Sparkline.tsx +95 -2
- package/src/ui/TimeAxis.tsx +13 -72
- package/src/ui/Title.tsx +33 -29
- package/src/ui/YAxis.tsx +11 -67
- package/src/ui/axisFade.ts +0 -23
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
High-performance timeseries charts for **React**, **Vue**, and **Svelte**. Canvas-rendered, tree-shakeable, zero runtime dependencies.
|
|
9
9
|
|
|
10
|
-
[Live Demo](https://
|
|
10
|
+
[Live Demo](https://wick-charts.eeff.io/) · [Docs](https://wick-charts.eeff.io/api/chart-container)
|
|
11
11
|
|
|
12
12
|
## Features
|
|
13
13
|
|
|
@@ -51,9 +51,9 @@ function Chart({ data }) {
|
|
|
51
51
|
|
|
52
52
|
Every component, prop, type, and slot context lives in the docs site:
|
|
53
53
|
|
|
54
|
-
[
|
|
54
|
+
[wick-charts.eeff.io/api/chart-container](https://wick-charts.eeff.io/api/chart-container)
|
|
55
55
|
|
|
56
|
-
Start there for [ChartContainer](https://
|
|
56
|
+
Start there for [ChartContainer](https://wick-charts.eeff.io/api/chart-container), then drill into the series ([Candlestick](https://wick-charts.eeff.io/api/candlestick-series), [Line](https://wick-charts.eeff.io/api/line-series), [Bar](https://wick-charts.eeff.io/api/bar-series), [Pie](https://wick-charts.eeff.io/api/pie-series), [Sparkline](https://wick-charts.eeff.io/api/sparkline)) and overlays ([Tooltip](https://wick-charts.eeff.io/api/tooltip), [InfoBar](https://wick-charts.eeff.io/api/info-bar), [Crosshair](https://wick-charts.eeff.io/api/crosshair), [Legend](https://wick-charts.eeff.io/api/legend), [YAxis](https://wick-charts.eeff.io/api/y-axis), [XAxis](https://wick-charts.eeff.io/api/x-axis), [Navigator](https://wick-charts.eeff.io/api/navigator), …).
|
|
57
57
|
|
|
58
58
|
## Bundle size
|
|
59
59
|
|
|
@@ -61,9 +61,9 @@ Tree-shaken React scenarios via `pnpm size` (esbuild, minified, browser target,
|
|
|
61
61
|
|
|
62
62
|
| Scenario | Raw | Gzip | Brotli |
|
|
63
63
|
|---|---:|---:|---:|
|
|
64
|
-
| Candlestick only |
|
|
65
|
-
| Line only |
|
|
66
|
-
| Full React |
|
|
64
|
+
| Candlestick only | 165.2 kB | 49.5 kB | 42.3 kB |
|
|
65
|
+
| Line only | 165.3 kB | 49.5 kB | 42.4 kB |
|
|
66
|
+
| Full React | 183.3 kB | 54.6 kB | 46.5 kB |
|
|
67
67
|
|
|
68
68
|
## Migration
|
|
69
69
|
|