@factorialco/f0-react 4.69.0 → 4.70.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/dist/component-status.js +1 -1
- package/dist/f0.d.ts +39 -0
- package/dist/f0.js +12105 -11992
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/f0.d.ts
CHANGED
|
@@ -8292,6 +8292,45 @@ export declare interface F0DataChartBarProps extends F0DataChartBaseProps {
|
|
|
8292
8292
|
orientation?: "vertical" | "horizontal";
|
|
8293
8293
|
/** Stack all series into a single bar per category. @default false */
|
|
8294
8294
|
stacked?: boolean;
|
|
8295
|
+
/**
|
|
8296
|
+
* When {@link F0DataChartBaseProps.showLabels} is on, hide a category's value
|
|
8297
|
+
* labels if the widest value in that category doesn't fit the bar. The whole
|
|
8298
|
+
* category drops together (all-or-nothing), so a tight chart never shows a
|
|
8299
|
+
* ragged, half-labelled set instead of overlapping numbers. @default true
|
|
8300
|
+
*/
|
|
8301
|
+
hideOverflowingLabels?: boolean;
|
|
8302
|
+
/**
|
|
8303
|
+
* Per-side clearance in pixels the widest value must have before
|
|
8304
|
+
* {@link F0DataChartBarProps.hideOverflowingLabels} counts it as fitting.
|
|
8305
|
+
* Overrides the default, which is placement-based: **12** for stacked (inside)
|
|
8306
|
+
* labels, **0** for labels outside the bar.
|
|
8307
|
+
*/
|
|
8308
|
+
labelFitPadding?: number;
|
|
8309
|
+
/**
|
|
8310
|
+
* With {@link F0DataChartBarProps.hideOverflowingLabels} on, use the widest
|
|
8311
|
+
* label as the fit reference for vertical columns and labels outside
|
|
8312
|
+
* horizontal bars. If it exceeds the shared allowance, hide every label
|
|
8313
|
+
* instead of leaving a ragged, partially labelled chart. Labels inside
|
|
8314
|
+
* horizontal stacked segments always fit per segment because their available
|
|
8315
|
+
* widths differ. Height overflow is also evaluated per bar. @default true
|
|
8316
|
+
*/
|
|
8317
|
+
hideAllLabelsOnOverflow?: boolean;
|
|
8318
|
+
/**
|
|
8319
|
+
* Suggested number of segments on the value axis — lower values draw fewer
|
|
8320
|
+
* grid lines. Applies to whichever axis is the value axis (Y for vertical
|
|
8321
|
+
* bars, X for horizontal). ECharts rounds to "nice" intervals. @default 2
|
|
8322
|
+
*/
|
|
8323
|
+
valueAxisSplitNumber?: number;
|
|
8324
|
+
/**
|
|
8325
|
+
* Font size in pixels for the value labels. @default 11
|
|
8326
|
+
*/
|
|
8327
|
+
labelFontSize?: number;
|
|
8328
|
+
/**
|
|
8329
|
+
* Formatter for the values shown in the hover tooltip. Defaults to
|
|
8330
|
+
* {@link F0DataChartBaseProps.valueFormatter}; set it to show precise values
|
|
8331
|
+
* (e.g. "107,505") while the axis and labels stay compact ("107.5K").
|
|
8332
|
+
*/
|
|
8333
|
+
tooltipValueFormatter?: (value: number) => string;
|
|
8295
8334
|
}
|
|
8296
8335
|
|
|
8297
8336
|
/**
|