oolib 2.199.8 → 2.199.9
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.
|
@@ -55,8 +55,8 @@ var CustomizedLabel_1 = require("./comps/CustomizedLabel");
|
|
|
55
55
|
var __1 = require("../../../..");
|
|
56
56
|
var usePrepareData_1 = require("../utils/usePrepareData");
|
|
57
57
|
var _base_barchart_ui_configs_1 = require("./_base_barchart_ui_configs");
|
|
58
|
+
var CustomTooltip_1 = __importDefault(require("./comps/CustomTooltip"));
|
|
58
59
|
var Legend_1 = require("./comps/Legend");
|
|
59
|
-
var OptimizedTooltip_1 = __importDefault(require("./comps/CustomTooltip/OptimizedTooltip"));
|
|
60
60
|
var useTrackMousePosition = function () {
|
|
61
61
|
var _a = (0, react_1.useState)({
|
|
62
62
|
x: 0,
|
|
@@ -268,7 +268,20 @@ var BarChartRenderer = function (_a) {
|
|
|
268
268
|
} },
|
|
269
269
|
react_1.default.createElement(recharts_1.XAxis, { hide: true, type: "number", domain: [0, dataMaxValue] }),
|
|
270
270
|
react_1.default.createElement(recharts_1.YAxis, { hide: true, type: "category" }),
|
|
271
|
-
isBreakdown && (react_1.default.createElement(recharts_1.Tooltip, { cursor: false,
|
|
271
|
+
isBreakdown && (react_1.default.createElement(recharts_1.Tooltip, { cursor: false,
|
|
272
|
+
// content={<OptimizedTooltip />}
|
|
273
|
+
// animationDuration={0}
|
|
274
|
+
// isAnimationActive={false}
|
|
275
|
+
// allowEscapeViewBox={{ x: false, y: false }}
|
|
276
|
+
// position={{ x: undefined, y: undefined }}
|
|
277
|
+
content: function (props) {
|
|
278
|
+
var _a;
|
|
279
|
+
return (react_1.default.createElement(CustomTooltip_1.default, __assign({}, props, { breakdownCategoryName: breakdownCategoryName, activeBar: activeBar, mousePosition: mousePosition, showPercent: showPercent,
|
|
280
|
+
// god knows why the dataindex gets stored against props.label.
|
|
281
|
+
// this is some internal recharts thing for tooltips specifically.
|
|
282
|
+
// we dont do this.
|
|
283
|
+
value: (_a = data[props.label]) === null || _a === void 0 ? void 0 : _a.map(function (item, idx) { return (__assign({}, item.labels)); }) })));
|
|
284
|
+
}, allowEscapeViewBox: { x: true, y: true } })),
|
|
272
285
|
isBreakdown
|
|
273
286
|
? data[0].map(function (_, stackIndex) {
|
|
274
287
|
//note that this map renders the individual bars within a breakdown group
|