Skip to content

Commit

Permalink
show categorical names in tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
kflemin committed Nov 26, 2024
1 parent a72bae9 commit cfaeff6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
]
}
Expand Down

0 comments on commit cfaeff6

Please sign in to comment.