Skip to content

Commit

Permalink
🆒 (#76) : alteracoes dos dados do grafico de pizza
Browse files Browse the repository at this point in the history
Co-authored-by: Larissa de Jesus Vieira <[email protected]>
  • Loading branch information
anabborges and VieiraLaris committed Dec 4, 2023
1 parent a0d11b2 commit 11cce82
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions implementacao-front/src/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@ const column = {
]
}

const cities = ['Porto Alegre', 'Caxias do Sul', 'Canoas', 'Pelotas', 'Santa Maria']

const quantity = [7282, 5321, 3293, 3124, 2130]
const total = [6714, 1530]

const pie = {
options: {
labels: ['Nomeações', 'Exonerações'],
colors: ["#FCA622", "#A11208"]
},
series: [30, 70],
series: total,
}

const cities = ['Porto Alegre', 'Caxias do Sul', 'Canoas', 'Pelotas', 'Santa Maria']

const quantity = [7282, 5321, 3293, 3124, 2130]
const total = [6714, 1530]

function Home() {
return (
<div className={styles.container}>
Expand All @@ -54,7 +54,7 @@ function Home() {
<Total quantity={total}/>
</div>
<div className={styles.pieGraph}>
<h2 className={styles.graphTitle}>Exonerações x Nomeações em 2023</h2>
<h2 className={styles.graphTitle}>Exonerações x Nomeações nos anos analisados</h2>
<Chart options={pie.options} series={pie.series}type="pie" width={400}/>
</div>
<Rank title='Municípios que mais nomeiam:' cities={cities} quantity={quantity}/>
Expand Down

0 comments on commit 11cce82

Please sign in to comment.