-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#23] legenda dinâmica da coloração de nós de universidades, programa…
…s e autores
- Loading branch information
Eduardo Fischer
committed
Aug 23, 2022
1 parent
3737551
commit 0e8abad
Showing
7 changed files
with
88 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from 'react' | ||
|
||
function GraphLegend({legendData}) { | ||
if (!legendData) return <div/> | ||
|
||
return ( | ||
<div className='legend-overlay'> | ||
<h1>Legenda</h1> | ||
|
||
{Object.entries(legendData).map(([type, color]) => ( | ||
<div key={type} className={`legend-item`}> | ||
<div className='color-circle' style={{backgroundColor: color}}/> | ||
<span className='type-name'>{type}</span> | ||
</div> | ||
))} | ||
</div> | ||
) | ||
} | ||
|
||
export default GraphLegend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters