@martinomagnifico/tablechart 1.2.3 → 1.2.4

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,32 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.2.4] - 2026-11-05
4
+
5
+ ### Added
6
+
7
+ - `lines` and `data-chart-lines`, the order of the points and dashes of lines.
8
+ - `data-line="dash-dot"`, a third line style.
9
+ - `marker: "none"` and `data-marker="none"`, a line without points.
10
+
11
+ ### Changed
12
+
13
+ - 24 different lines before they repeat.
14
+ - With a chosen set such as `data-chart-values="last"`, the last number of a line goes next to its name.
15
+
16
+ ### Fixed
17
+
18
+ - Columns and bars side by side follow `data-chart-labels="inside"`.
19
+ - Minimum build time for a line with few points.
20
+ - Contrast of names next to lines.
21
+ - Names at the ends of lines keep clear of the last numbers.
22
+ - The contrast check also measures text on the background.
23
+ - A chart measures its background again after a theme switch.
24
+ - Filled and open points have the same outer size.
25
+ - Points in the legend and the tooltip have the same size and shape as on the chart.
26
+ - The legend and the tooltip show `--tablechart-point-color`.
27
+ - A value of a chosen set that finds a place is shown.
28
+ - A value moved away from its point gets no other line in between.
29
+
3
30
  ## [1.2.3] - 2026-10-31
4
31
 
5
32
  ### Added
@@ -4,6 +4,12 @@ declare const SHOWN_CLASS = "is-shown";
4
4
  declare const PRINTING_CLASS = "is-printing";
5
5
  declare const AT_ONCE_CLASS = "is-at-once";
6
6
  declare const QUEUED_CLASS = "tablechart-queued";
7
+ /** One item of the `lines` option. */
8
+ interface LineStyle {
9
+ marker?: "circle" | "square" | "diamond" | "none";
10
+ open?: boolean;
11
+ line?: "dashed" | "dotted" | "dash-dot" | "solid";
12
+ }
7
13
  interface Config {
8
14
  /** Which elements Tablechart turns into charts. */
9
15
  selector: string;
@@ -46,6 +52,8 @@ interface Config {
46
52
  table: "never" | "auto" | "print" | "always";
47
53
  /** With `auto`, the table is printed only up to this many values, rows times value columns; a longer one prints the summary instead. */
48
54
  tablelimit: number;
55
+ /** The look of each next line, instead of the 24 default looks; after the last one it starts again. `data-chart-lines` on a figure or a parent, and `data-marker` and `data-line` on a column header, still win. */
56
+ lines: LineStyle[] | null;
49
57
  /** The summary of a chart, in a `.chart-summary`: `"always"`, only in `"print"`, in print when the table is not (`"auto"`), or `"never"`, for screen readers only. A figure overrides it with `data-chart-summary`. */
50
58
  summary: "never" | "auto" | "print" | "always";
51
59
  /** The name of the total that a donut without a total row works out, for screen readers. */
@@ -141,7 +149,7 @@ interface Series {
141
149
  focus: boolean;
142
150
  /** `data-marker` on the header, such as `square` or `diamond open`. */
143
151
  marker: string | null;
144
- line: "dashed" | "dotted" | null;
152
+ line: "dashed" | "dotted" | "dash-dot" | null;
145
153
  /** `data-group` on the header: the cells name a group, such as "Predefined". */
146
154
  group: boolean;
147
155
  /** `data-chart="line"` on the header, in a chart that takes it: a line over the other marks. */
@@ -202,6 +210,8 @@ interface Geometry {
202
210
  shape: Shape;
203
211
  /** Which values a line or an area shows. */
204
212
  pick: ValuePick;
213
+ /** The last number of each line goes next to its name. */
214
+ numbersAtEnd: boolean;
205
215
  /** Empty when the chart is not stacked or its kind shows no totals. */
206
216
  totals: HTMLElement[];
207
217
  svg: SVGSVGElement;
@@ -298,6 +308,7 @@ interface TooltipLine {
298
308
  open: boolean;
299
309
  line: string | null;
300
310
  box: boolean;
311
+ point?: string;
301
312
  };
302
313
  }
303
314
  interface HeadroomInput {
@@ -422,6 +433,6 @@ declare const readMarkdownRows: (figures: HTMLElement[]) => void;
422
433
  declare const assignKeys: (figures: HTMLElement[], langattribute: string | false) => void;
423
434
  /** Warns about each line, slice or bar that does not stand out enough from the background. Faint parts that are out of focus are left out. */
424
435
  declare const checkContrast: (figure: HTMLElement) => void;
425
- /** Warns about each number inside a bar whose colour does not stand out enough from that bar, once the chart is built. */
436
+ /** Warns about text that does not stand out enough: a number inside a bar from that bar, other text from the background, once the chart is built. */
426
437
  declare const checkTextContrast: (figure: HTMLElement) => void;
427
438
  export { PRINTING_CLASS as A, Series as C, Config as D, AT_ONCE_CLASS as E, SHOWN_CLASS as M, defaultConfig as N, PLACED_CLASS as O, Row as S, stepTo as T, setShown as _, loadSources as a, ChartState as b, TablechartInstance as c, init as d, prepare as f, relabel as g, layout as h, adoptTables as i, QUEUED_CLASS as j, PLOT_CLASS as k, create as l, build as m, checkTextContrast as n, readMarkdownRows as o, addType as p, assignKeys as r, TablechartChart as s, checkContrast as t, entranceOf as u, unbuild as v, StepPlan as w, ChartType as x, scatter as y };