@czi-sds/data-viz 0.14.1 → 0.14.2
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/index.cjs.d.ts +3 -3
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.d.ts +3 -3
- package/dist/index.esm.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/index.cjs.d.ts
CHANGED
|
@@ -246,11 +246,11 @@ interface StackedBarChartProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
246
246
|
selectionBehavior?: "dim" | "hide";
|
|
247
247
|
/**
|
|
248
248
|
* Chart mode - controls how segments are calculated
|
|
249
|
-
* - "
|
|
249
|
+
* - "proportional": Segments fill entire bar (100%), proportional to their values
|
|
250
250
|
* - "cumulative": Segments sized based on actual values relative to maxAmount
|
|
251
|
-
* @default "
|
|
251
|
+
* @default "proportional"
|
|
252
252
|
*/
|
|
253
|
-
mode?: "
|
|
253
|
+
mode?: "proportional" | "cumulative";
|
|
254
254
|
/**
|
|
255
255
|
* Maximum amount for the bar (used only in "cumulative" mode)
|
|
256
256
|
* If not provided, defaults to sum of all values (no remaining segment)
|
package/dist/index.cjs.js
CHANGED
|
@@ -24981,7 +24981,7 @@ var renderBarSegment = function (item, index, options) {
|
|
|
24981
24981
|
};
|
|
24982
24982
|
var StackedBarChart = function (props) {
|
|
24983
24983
|
var _a, _b, _c;
|
|
24984
|
-
var title = props.title, badge = props.badge, _d = props.hideBadge, hideBadge = _d === void 0 ? false : _d, data = props.data, _e = props.width, width = _e === void 0 ? "100%" : _e, _f = props.barHeight, barHeightProp = _f === void 0 ? 16 : _f, _g = props.showLegend, showLegend = _g === void 0 ? true : _g, _h = props.showLegendValues, showLegendValues = _h === void 0 ? true : _h, _j = props.legendValueFormat, legendValueFormat = _j === void 0 ? "percentage" : _j, _k = props.selectedIndices, selectedIndices = _k === void 0 ? [] : _k, onSelectionChange = props.onSelectionChange, _l = props.selectionBehavior, selectionBehavior = _l === void 0 ? "dim" : _l, _m = props.mode, mode = _m === void 0 ? "
|
|
24984
|
+
var title = props.title, badge = props.badge, _d = props.hideBadge, hideBadge = _d === void 0 ? false : _d, data = props.data, _e = props.width, width = _e === void 0 ? "100%" : _e, _f = props.barHeight, barHeightProp = _f === void 0 ? 16 : _f, _g = props.showLegend, showLegend = _g === void 0 ? true : _g, _h = props.showLegendValues, showLegendValues = _h === void 0 ? true : _h, _j = props.legendValueFormat, legendValueFormat = _j === void 0 ? "percentage" : _j, _k = props.selectedIndices, selectedIndices = _k === void 0 ? [] : _k, onSelectionChange = props.onSelectionChange, _l = props.selectionBehavior, selectionBehavior = _l === void 0 ? "dim" : _l, _m = props.mode, mode = _m === void 0 ? "proportional" : _m, maxAmount = props.maxAmount, _o = props.remainingLabel, remainingLabel = _o === void 0 ? "Remaining" : _o, remainingUnit = props.remainingUnit, unit = props.unit, colorGeneratorOptions = props.colorGeneratorOptions, rest = __rest(props, ["title", "badge", "hideBadge", "data", "width", "barHeight", "showLegend", "showLegendValues", "legendValueFormat", "selectedIndices", "onSelectionChange", "selectionBehavior", "mode", "maxAmount", "remainingLabel", "remainingUnit", "unit", "colorGeneratorOptions"]);
|
|
24985
24985
|
// Ensure barHeight is at least 1px
|
|
24986
24986
|
var barHeight = Math.max(1, barHeightProp);
|
|
24987
24987
|
var theme = material.useTheme();
|
package/dist/index.esm.d.ts
CHANGED
|
@@ -246,11 +246,11 @@ interface StackedBarChartProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
246
246
|
selectionBehavior?: "dim" | "hide";
|
|
247
247
|
/**
|
|
248
248
|
* Chart mode - controls how segments are calculated
|
|
249
|
-
* - "
|
|
249
|
+
* - "proportional": Segments fill entire bar (100%), proportional to their values
|
|
250
250
|
* - "cumulative": Segments sized based on actual values relative to maxAmount
|
|
251
|
-
* @default "
|
|
251
|
+
* @default "proportional"
|
|
252
252
|
*/
|
|
253
|
-
mode?: "
|
|
253
|
+
mode?: "proportional" | "cumulative";
|
|
254
254
|
/**
|
|
255
255
|
* Maximum amount for the bar (used only in "cumulative" mode)
|
|
256
256
|
* If not provided, defaults to sum of all values (no remaining segment)
|
package/dist/index.esm.js
CHANGED
|
@@ -24957,7 +24957,7 @@ var renderBarSegment = function (item, index, options) {
|
|
|
24957
24957
|
};
|
|
24958
24958
|
var StackedBarChart = function (props) {
|
|
24959
24959
|
var _a, _b, _c;
|
|
24960
|
-
var title = props.title, badge = props.badge, _d = props.hideBadge, hideBadge = _d === void 0 ? false : _d, data = props.data, _e = props.width, width = _e === void 0 ? "100%" : _e, _f = props.barHeight, barHeightProp = _f === void 0 ? 16 : _f, _g = props.showLegend, showLegend = _g === void 0 ? true : _g, _h = props.showLegendValues, showLegendValues = _h === void 0 ? true : _h, _j = props.legendValueFormat, legendValueFormat = _j === void 0 ? "percentage" : _j, _k = props.selectedIndices, selectedIndices = _k === void 0 ? [] : _k, onSelectionChange = props.onSelectionChange, _l = props.selectionBehavior, selectionBehavior = _l === void 0 ? "dim" : _l, _m = props.mode, mode = _m === void 0 ? "
|
|
24960
|
+
var title = props.title, badge = props.badge, _d = props.hideBadge, hideBadge = _d === void 0 ? false : _d, data = props.data, _e = props.width, width = _e === void 0 ? "100%" : _e, _f = props.barHeight, barHeightProp = _f === void 0 ? 16 : _f, _g = props.showLegend, showLegend = _g === void 0 ? true : _g, _h = props.showLegendValues, showLegendValues = _h === void 0 ? true : _h, _j = props.legendValueFormat, legendValueFormat = _j === void 0 ? "percentage" : _j, _k = props.selectedIndices, selectedIndices = _k === void 0 ? [] : _k, onSelectionChange = props.onSelectionChange, _l = props.selectionBehavior, selectionBehavior = _l === void 0 ? "dim" : _l, _m = props.mode, mode = _m === void 0 ? "proportional" : _m, maxAmount = props.maxAmount, _o = props.remainingLabel, remainingLabel = _o === void 0 ? "Remaining" : _o, remainingUnit = props.remainingUnit, unit = props.unit, colorGeneratorOptions = props.colorGeneratorOptions, rest = __rest(props, ["title", "badge", "hideBadge", "data", "width", "barHeight", "showLegend", "showLegendValues", "legendValueFormat", "selectedIndices", "onSelectionChange", "selectionBehavior", "mode", "maxAmount", "remainingLabel", "remainingUnit", "unit", "colorGeneratorOptions"]);
|
|
24961
24961
|
// Ensure barHeight is at least 1px
|
|
24962
24962
|
var barHeight = Math.max(1, barHeightProp);
|
|
24963
24963
|
var theme = useTheme$4();
|