openalgo-charts 1.8.4 → 1.8.6

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 CHANGED
@@ -8,8 +8,8 @@ Professional interactive charts, 102 built-in indicators plus your own custom on
8
8
 
9
9
  [![npm version](https://img.shields.io/npm/v/openalgo-charts.svg?color=cb3837&label=npm)](https://www.npmjs.com/package/openalgo-charts)
10
10
  [![license](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](./LICENSE)
11
- [![bundle](https://img.shields.io/badge/brotli-59%20KB%20base%20%C2%B7%20120%20KB%20all%20tiers-brightgreen.svg)](#size-budget)
12
- [![tests](https://img.shields.io/badge/tests-2408%20passing-brightgreen.svg)](#develop)
11
+ [![bundle](https://img.shields.io/badge/brotli-60%20KB%20base%20%C2%B7%20121%20KB%20all%20tiers-brightgreen.svg)](#size-budget)
12
+ [![tests](https://img.shields.io/badge/tests-2436%20passing-brightgreen.svg)](#develop)
13
13
  [![dependencies](https://img.shields.io/badge/runtime%20deps-0-brightgreen.svg)](#principles)
14
14
 
15
15
  [**Documentation**](https://marketcalls.github.io/openalgo-charts/)  ·  [**Live examples**](https://marketcalls.github.io/openalgo-charts/examples)  ·  [**Getting started**](./docs/getting-started.md)  ·  [**Architecture**](./ARCHITECTURE.md)
@@ -60,14 +60,14 @@ Import only what you use. Each tier is a separate bundle that registers into the
60
60
 
61
61
  | Import | Contents | Brotli |
62
62
  |---|---|---|
63
- | `openalgo-charts` | Engine, 13 chart types, panes & scales, primitives, registries, chart state, chart linking, bar cache, interval registry, trading overlay, OpenAlgo feeds | 59.1 KB |
64
- | `openalgo-charts/indicators` | 102 built-in indicators, the `registerIndicator` contract for your own, and the Tier-2 (external-data) contract | 27.2 KB |
63
+ | `openalgo-charts` | Engine, 13 chart types, panes & scales, primitives, registries, chart state, chart linking, bar cache, interval registry, trading overlay, OpenAlgo feeds | 59.7 KB |
64
+ | `openalgo-charts/indicators` | 102 built-in indicators, the `registerIndicator` contract for your own, and the Tier-2 (external-data) contract | 27.3 KB |
65
65
  | `openalgo-charts/draw` | 43 drawing tools + a headless drawing controller and clipboard | 13.1 KB |
66
66
  | `openalgo-charts/transform` | Heikin Ashi, Renko, Range bars, Line Break, Point & Figure, Kagi | 2.7 KB |
67
67
  | `openalgo-charts/profile` | Volume Profile, Market Profile (TPO), Footprint, order flow | 10.7 KB |
68
68
  | `openalgo-charts/trade` | Order / position / bracket tools + DOM ladder | 7.6 KB |
69
69
 
70
- Everything together is **120.3 KB Brotli**. Figures are the measured `size-limit` output. The trade tier is listed as its delta over the base, so loading base + trade costs 66.7 KB.
70
+ Everything together is **121 KB Brotli**. Figures are the measured `size-limit` output. The trade tier is listed as its delta over the base, so loading base + trade costs 67.29 KB.
71
71
 
72
72
  ## What's built
73
73
 
@@ -208,13 +208,13 @@ Enforced in CI by [`size-limit`](./.size-limit.json). Nothing is excluded, becau
208
208
 
209
209
  | Bundle | Limit | Actual |
210
210
  |---|---|---|
211
- | Base engine | 60 KB | 59.06 KB |
212
- | Base + trade | 68 KB | 66.67 KB |
211
+ | Base engine | 60 KB | 59.68 KB |
212
+ | Base + trade | 68 KB | 67.29 KB |
213
213
  | Indicators tier | 30 KB | 27.27 KB |
214
214
  | Draw tier | 14 KB | 13.13 KB |
215
215
  | Transform tier | 5 KB | 2.66 KB |
216
216
  | Profile tier | 11 KB | 10.66 KB |
217
- | **Everything** | **124 KB** | **120.38 KB** |
217
+ | **Everything** | **124 KB** | **121 KB** |
218
218
 
219
219
  ## Documentation
220
220
 
@@ -254,7 +254,7 @@ cd examples/yfinance && pip install -r requirements.txt && python server.py
254
254
  ```bash
255
255
  npm install # install dev toolchain
256
256
  npm run typecheck # strict TypeScript check
257
- npm test # unit tests (vitest) - 2408 across 129 files
257
+ npm test # unit tests (vitest) - 2436 across 133 files
258
258
  npm run build # Rollup -> dist/ (minified ESM per tier + types)
259
259
  npm run size # size-limit (Brotli) against the budget
260
260
  npm run e2e # Playwright Chromium smoke tests
@@ -271,7 +271,7 @@ npm run verify # typecheck + test + build + size
271
271
 
272
272
  ## Status & limitations
273
273
 
274
- Version **1.8.4**. All engine build phases are implemented with 2411 unit tests across 130 files.
274
+ Version **1.8.6**. All engine build phases are implemented with 2436 unit tests across 133 files.
275
275
 
276
276
  Known gaps, stated plainly:
277
277
 
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /** Library version string. Matches package.json (published npm release). */
2
- declare const VERSION = "1.8.4";
2
+ declare const VERSION = "1.8.6";
3
3
  /** Returns the current library version. */
4
4
  declare function version(): string;
5
5
 
@@ -549,7 +549,16 @@ interface SeriesStyle {
549
549
  title?: string;
550
550
  /** Show the dashed horizontal last-price line across the plot. Default true. */
551
551
  priceLineVisible?: boolean;
552
- /** Show the last-value tag on the price axis. Default true. */
552
+ /**
553
+ * Show this series' current value as a tag on the price axis. Default true.
554
+ *
555
+ * Every series on the pane's readout scale gets one, not only the instrument:
556
+ * an indicator overlay, a comparison line, a study on a pane of its own. The
557
+ * instrument's tag is the up/down coloured one that also carries the bar
558
+ * countdown; the rest are drawn in their own plot colour. A series whose
559
+ * current value is not a number draws no tag, so a study that is `na` right
560
+ * now says nothing rather than showing a stale reading.
561
+ */
553
562
  lastValueVisible?: boolean;
554
563
  /**
555
564
  * Decimal places for every price the scale this series maps to formats: the