Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions backend/src/casa-civil/dash/dto/transferencia.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ export class ChartDataDto {
type: string;
name?: string;
nameLocation?: string;
nameTextStyle?: {
align: string;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eu teria botado os valores válidos, mas quem manda desse lado do muro são vocês e não especificaram nenhum. Então...

};
data?: string[] | ChartDataWithConfigDto[];
stack?: string;
encode?: ChartEncodeDto;
Expand Down
14 changes: 11 additions & 3 deletions backend/src/casa-civil/dash/transferencia.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,9 @@ export class DashTransferenciaService {
top: 'middle',
grid: { left: '30%' },
xAxis: {
nameTextStyle: {
align: 'right',
},
type: 'category',
data: dadosPorOrgao
.sort((a, b) => {
Expand Down Expand Up @@ -715,17 +718,22 @@ export class DashTransferenciaService {
return {
name: etapa.etapa_fluxo,
type: 'bar',
stack: 'total',
barWidth: '20%',
color: coresLegenda[itt],
itemStyle: {
barBorderRadius: [100, 100, 0, 0],
},
label: {
show: true,
position: 'inside',
position: 'top',
align: 'left',
formatter: function (params: any) {
return params.value > 0 ? params.value : '';
},
fontSize: 12,
color: '#fff',
color: coresLegenda[itt],
rotate: 90,
verticalAlign: 'middle',
fontWeight: 'bold',
},
data: dadosPorOrgao
Expand Down