expressive-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 +23 -0
- package/README.md +5 -5
- package/dist/expressive-charts.global.js +6 -6
- package/dist/expressive-charts.global.js.map +1 -1
- package/dist/index.cjs +293 -85
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -6
- package/dist/index.d.ts +17 -6
- package/dist/index.js +293 -85
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -531,11 +531,14 @@ interface LineChartOptions<D> extends ChartOptions<D> {
|
|
|
531
531
|
*/
|
|
532
532
|
readonly x: Accessor<D, number | Date>;
|
|
533
533
|
/**
|
|
534
|
-
* A time axis's zone: "UTC" (the default)
|
|
535
|
-
*
|
|
536
|
-
*
|
|
534
|
+
* A time axis's zone: "UTC" (the default), "local", the viewer's clock, or a zone's name as Intl
|
|
535
|
+
* knows it, such as "Europe/London". Ticks fall on its midnights, months, years, hours and minutes,
|
|
536
|
+
* through summer time, and the names, the tooltip and the table say times in it with no zone's name,
|
|
537
|
+
* but for a time that comes twice where the clocks go back, which adds its short name ("1:30 AM
|
|
538
|
+
* GMT+1", "01:30 BST" in en-GB). A date-only value such as new Date("2026-01-05") is UTC midnight,
|
|
539
|
+
* so in UTC it's 5 January on every machine. A name Intl doesn't know throws a TypeError.
|
|
537
540
|
*/
|
|
538
|
-
readonly timeZone?: "UTC" | "local";
|
|
541
|
+
readonly timeZone?: "UTC" | "local" | (string & {});
|
|
539
542
|
/**
|
|
540
543
|
* Words an x for people instead of the default: in each x's name, the tooltip's title, the table's
|
|
541
544
|
* row headers and the announcements, and as `markLabel`'s `category`. Given the x as the data has it,
|
|
@@ -551,6 +554,12 @@ interface LineChartOptions<D> extends ChartOptions<D> {
|
|
|
551
554
|
* series is missing there. NaN and the infinities throw.
|
|
552
555
|
*/
|
|
553
556
|
readonly series: readonly KeyOfType<D, number | null | undefined>[];
|
|
557
|
+
/**
|
|
558
|
+
* The word for a missing value: in the table's cell, and after the series' label in the x's name,
|
|
559
|
+
* the tooltip and `markLabel`'s default text ("goals missing"). Default "missing". Anything but a
|
|
560
|
+
* string with a word in it throws a TypeError, and update({ missing }) words them again.
|
|
561
|
+
*/
|
|
562
|
+
readonly missing?: string;
|
|
554
563
|
/**
|
|
555
564
|
* The label at each line's end, in the right margin: by default its value in `format` with its
|
|
556
565
|
* series' label ("52 goals"), counting between values while a change or a reveal plays. `false`
|
|
@@ -905,7 +914,9 @@ interface LinkOptions<D> {
|
|
|
905
914
|
* A mark's linking value, given the mark and its data as a hover event has them. Default: its last
|
|
906
915
|
* sample's `at` if it has one (a line point's x), else its key (a bar's or a slice's category).
|
|
907
916
|
* Values are compared as strings, a Date by its ISO string, as keys are. Undefined or null links
|
|
908
|
-
* nothing, and so does a throw (reported).
|
|
917
|
+
* nothing, and so does a throw (reported). A line chart's x with every value missing has no point,
|
|
918
|
+
* so it's given a stand-in for one, keyed by the x, with the row and a sample at the x, whose value
|
|
919
|
+
* is NaN.
|
|
909
920
|
*/
|
|
910
921
|
readonly by?: (event: Pick<MarkEvent<D>, "mark" | "data">) => unknown;
|
|
911
922
|
/** Whether linked marks play their chart's hover effect. Default true; false keeps them to emphasis and dimming. */
|
|
@@ -1468,7 +1479,7 @@ export declare function registerIcons(icons: readonly Icon[]): void;
|
|
|
1468
1479
|
* has the same rules. For a CSP that allows no inline styles at all.
|
|
1469
1480
|
*/
|
|
1470
1481
|
export declare function configure(options: StyleOptions): void;
|
|
1471
|
-
export declare const VERSION = "0.
|
|
1482
|
+
export declare const VERSION = "0.8.0";
|
|
1472
1483
|
/**
|
|
1473
1484
|
* A bar chart in `target` (an element or a selector). The axis whose values aren't numbers is the
|
|
1474
1485
|
* category; `stack` stacks numeric fields; `on` attaches effects by slot.
|
package/dist/index.d.ts
CHANGED
|
@@ -531,11 +531,14 @@ interface LineChartOptions<D> extends ChartOptions<D> {
|
|
|
531
531
|
*/
|
|
532
532
|
readonly x: Accessor<D, number | Date>;
|
|
533
533
|
/**
|
|
534
|
-
* A time axis's zone: "UTC" (the default)
|
|
535
|
-
*
|
|
536
|
-
*
|
|
534
|
+
* A time axis's zone: "UTC" (the default), "local", the viewer's clock, or a zone's name as Intl
|
|
535
|
+
* knows it, such as "Europe/London". Ticks fall on its midnights, months, years, hours and minutes,
|
|
536
|
+
* through summer time, and the names, the tooltip and the table say times in it with no zone's name,
|
|
537
|
+
* but for a time that comes twice where the clocks go back, which adds its short name ("1:30 AM
|
|
538
|
+
* GMT+1", "01:30 BST" in en-GB). A date-only value such as new Date("2026-01-05") is UTC midnight,
|
|
539
|
+
* so in UTC it's 5 January on every machine. A name Intl doesn't know throws a TypeError.
|
|
537
540
|
*/
|
|
538
|
-
readonly timeZone?: "UTC" | "local";
|
|
541
|
+
readonly timeZone?: "UTC" | "local" | (string & {});
|
|
539
542
|
/**
|
|
540
543
|
* Words an x for people instead of the default: in each x's name, the tooltip's title, the table's
|
|
541
544
|
* row headers and the announcements, and as `markLabel`'s `category`. Given the x as the data has it,
|
|
@@ -551,6 +554,12 @@ interface LineChartOptions<D> extends ChartOptions<D> {
|
|
|
551
554
|
* series is missing there. NaN and the infinities throw.
|
|
552
555
|
*/
|
|
553
556
|
readonly series: readonly KeyOfType<D, number | null | undefined>[];
|
|
557
|
+
/**
|
|
558
|
+
* The word for a missing value: in the table's cell, and after the series' label in the x's name,
|
|
559
|
+
* the tooltip and `markLabel`'s default text ("goals missing"). Default "missing". Anything but a
|
|
560
|
+
* string with a word in it throws a TypeError, and update({ missing }) words them again.
|
|
561
|
+
*/
|
|
562
|
+
readonly missing?: string;
|
|
554
563
|
/**
|
|
555
564
|
* The label at each line's end, in the right margin: by default its value in `format` with its
|
|
556
565
|
* series' label ("52 goals"), counting between values while a change or a reveal plays. `false`
|
|
@@ -905,7 +914,9 @@ interface LinkOptions<D> {
|
|
|
905
914
|
* A mark's linking value, given the mark and its data as a hover event has them. Default: its last
|
|
906
915
|
* sample's `at` if it has one (a line point's x), else its key (a bar's or a slice's category).
|
|
907
916
|
* Values are compared as strings, a Date by its ISO string, as keys are. Undefined or null links
|
|
908
|
-
* nothing, and so does a throw (reported).
|
|
917
|
+
* nothing, and so does a throw (reported). A line chart's x with every value missing has no point,
|
|
918
|
+
* so it's given a stand-in for one, keyed by the x, with the row and a sample at the x, whose value
|
|
919
|
+
* is NaN.
|
|
909
920
|
*/
|
|
910
921
|
readonly by?: (event: Pick<MarkEvent<D>, "mark" | "data">) => unknown;
|
|
911
922
|
/** Whether linked marks play their chart's hover effect. Default true; false keeps them to emphasis and dimming. */
|
|
@@ -1468,7 +1479,7 @@ export declare function registerIcons(icons: readonly Icon[]): void;
|
|
|
1468
1479
|
* has the same rules. For a CSP that allows no inline styles at all.
|
|
1469
1480
|
*/
|
|
1470
1481
|
export declare function configure(options: StyleOptions): void;
|
|
1471
|
-
export declare const VERSION = "0.
|
|
1482
|
+
export declare const VERSION = "0.8.0";
|
|
1472
1483
|
/**
|
|
1473
1484
|
* A bar chart in `target` (an element or a selector). The axis whose values aren't numbers is the
|
|
1474
1485
|
* category; `stack` stacks numeric fields; `on` attaches effects by slot.
|