This commit is contained in:
Luiz Silva 2025-01-08 06:26:41 -03:00
parent b3915b93c2
commit c87831aa0c
4 changed files with 5 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
{ {
"name": "p-drives", "name": "p-drives",
"version": "0.213.0", "version": "0.214.0",
"description": "", "description": "",
"main": "src/index.ts", "main": "src/index.ts",
"exports": { "exports": {

View file

@ -14,11 +14,12 @@ export const z_soma_em_barra_vertical: tipo_estrutura_visao_grafico<"z_soma_em_b
filtros, filtros,
colunaAgrupamento, colunaAgrupamento,
colunaSoma, colunaSoma,
exibirComoPorcentagem,
}) => { }) => {
if (String(descricao_pelo_usuario || "").trim()) if (String(descricao_pelo_usuario || "").trim())
return String(descricao_pelo_usuario || "").trim() return String(descricao_pelo_usuario || "").trim()
return `Soma de ${colunaSoma} por ${colanuEixoX}${ return `${exibirComoPorcentagem ? "Porcentagem " : "Soma"} de ${colunaSoma} por ${colanuEixoX}${
!filtros?.length !filtros?.length
? "" ? ""
: `, quando ${filtros : `, quando ${filtros