@bicharts/chart-host 0.5.107 → 0.5.109
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/dist/{chunk-HLNXXQA5.mjs → chunk-MZNTO42Q.mjs} +329 -301
- package/dist/index.mjs +106 -102
- package/dist/react.mjs +13 -2
- package/dist/types/host.d.ts +16 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/invalidSentinel.d.ts +14 -0
- package/dist/types/react.d.ts +7 -0
- package/package.json +1 -1
package/dist/types/react.d.ts
CHANGED
|
@@ -34,6 +34,13 @@ export interface BicChartProps {
|
|
|
34
34
|
labelContrast?: ChartHostConfig["labelContrast"];
|
|
35
35
|
/** What the label-contrast pass did after each render - counts, for a page that logs. */
|
|
36
36
|
onLabelContrast?: ChartHostConfig["onLabelContrast"];
|
|
37
|
+
/**
|
|
38
|
+
* THE CHART STOPPED BECAUSE THE DATA LACKS A COLUMN IT IS BUILT ON. Supplied: the chart's
|
|
39
|
+
* container is left empty and this is called with the chart's reason, instead of the throw
|
|
40
|
+
* reaching React - so a page can say what is missing where the chart would be. Absent: the
|
|
41
|
+
* throw propagates as before. See createChartHost's `onInvalidSentinel`.
|
|
42
|
+
*/
|
|
43
|
+
onInvalidSentinel?: ChartHostConfig["onInvalidSentinel"];
|
|
37
44
|
/** Identity within a <BicChartGroup> — the key other charts filter by. */
|
|
38
45
|
id?: string;
|
|
39
46
|
/** Take this group member's selection as a filter on THIS chart's rows. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bicharts/chart-host",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.109",
|
|
4
4
|
"description": "Run a BIC-generated D3 chart in any web host: compiles the generated render() function, applies the shared option defaults, resolves mark clicks (through tooltip overlays), owns the selection affordance, and translates row indices between cross-filtered charts. The same contract the BIC Power BI visual implements, minus Power BI. React bindings at @bicharts/chart-host/react.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|