Skip to content

Commit

Permalink
fix frontend tresholds
Browse files Browse the repository at this point in the history
  • Loading branch information
YvannPONCE committed Nov 13, 2024
1 parent a7575e5 commit 2397ef7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cloud/frontend/src/components/profil/Profil-kpi.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default function ProfilKpi(props: ProfilKpiProps) {
<GaugeComponent
type="semicircle"
value={(kpi.data[key as keyof typeof kpi.data] as KPIData).average}
maxValue={(kpi.data[key as keyof typeof kpi.data] as KPIData).max+0.22 || 1}
maxValue={(kpi.data[key as keyof typeof kpi.data] as KPIData).max+1 || 1}
minValue={(kpi.data[key as keyof typeof kpi.data] as KPIData).min || 0}
arc={{
gradient: true,
Expand All @@ -69,8 +69,8 @@ export default function ProfilKpi(props: ProfilKpiProps) {
]
: [
{ limit: (kpi.data[key as keyof typeof kpi.data] as KPIData).min + ((kpi.data[key as keyof typeof kpi.data] as KPIData).max - (kpi.data[key as keyof typeof kpi.data] as KPIData).min) / 4 },
{ limit: ((kpi.data[key as keyof typeof kpi.data] as KPIData).min + ((kpi.data[key as keyof typeof kpi.data] as KPIData).max - (kpi.data[key as keyof typeof kpi.data] as KPIData).min) / 2)+0.1 },
{ limit: ((kpi.data[key as keyof typeof kpi.data] as KPIData).min + ((kpi.data[key as keyof typeof kpi.data] as KPIData).max - (kpi.data[key as keyof typeof kpi.data] as KPIData).min) / 1.2)+0.2 }
{ limit: ((kpi.data[key as keyof typeof kpi.data] as KPIData).min + ((kpi.data[key as keyof typeof kpi.data] as KPIData).max - (kpi.data[key as keyof typeof kpi.data] as KPIData).min) / 2)+0.5 },
{ limit: ((kpi.data[key as keyof typeof kpi.data] as KPIData).min + ((kpi.data[key as keyof typeof kpi.data] as KPIData).max - (kpi.data[key as keyof typeof kpi.data] as KPIData).min) / 1.2)+0.9 }
].sort((a, b) => a.limit - b.limit)
}}
pointer={{type: "arrow", elastic: true}}
Expand Down
2 changes: 1 addition & 1 deletion gateway/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ services:
- RABBITMQ_PASSWORD=guest
- NOTIFICATION_SERVER=http://doctor.al.apoorva64.com
- CLIENT_INFO_SERVER=http://doctor.al.apoorva64.com
- GATEWAY_ID=672f480ac368aa3dd8f6664b
- GATEWAY_ID=671ec1f0c368aa3dd8f66649
volumes:
- /etc/localtime:/etc/localtime:ro
depends_on:
Expand Down

0 comments on commit 2397ef7

Please sign in to comment.