From cfaeff6628dba7330aaa8908e004364783b22bd2 Mon Sep 17 00:00:00 2001 From: kflemin <2205659+kflemin@users.noreply.github.com> Date: Mon, 25 Nov 2024 22:21:28 -0700 Subject: [PATCH] show categorical names in tooltip --- seed/static/seed/js/controllers/inventory_reports_controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seed/static/seed/js/controllers/inventory_reports_controller.js b/seed/static/seed/js/controllers/inventory_reports_controller.js index 8a7c9ab88b..7cd7619855 100644 --- a/seed/static/seed/js/controllers/inventory_reports_controller.js +++ b/seed/static/seed/js/controllers/inventory_reports_controller.js @@ -390,7 +390,7 @@ angular.module('SEED.controller.inventory_reports', []).controller('inventory_re return ctx[0]?.raw.display_name; }, label: (ctx) => [ - `${$scope.xAxisSelectedItem.label}: ${type === 'bar' ? ctx.label : ctx.parsed.x}`, + `${$scope.xAxisSelectedItem.label}: ${type === 'bar' ? ctx.label : ctx.raw.x}`, `${$scope.yAxisSelectedItem.label}: ${type === 'bar' ? ctx.raw : ctx.parsed.y}` ] }