├── public └── images │ └── arepa.png ├── vite.config.js ├── src ├── main.jsx ├── components │ ├── TipeOfCompany │ │ ├── TypeOfCompany.scss │ │ └── TypeOfCompany.jsx │ ├── EnglishSalary │ │ ├── EnglishSalary.scss │ │ └── EnglishSalary.jsx │ ├── SalaryVsExperience │ │ ├── SalaryVsExperience.scss │ │ └── SalaryVsExperience.jsx │ ├── SalaryVsLanguage │ │ ├── SalaryVsLanguage.scss │ │ └── SalaryVsLanguage.jsx │ ├── Navbar │ │ ├── Navbar.jsx │ │ └── Navbar.scss │ ├── EnglishLevel │ │ ├── EnglishLevel.scss │ │ └── EnglishLevel.jsx │ ├── Education │ │ ├── Education.scss │ │ └── Education.jsx │ ├── Language │ │ ├── Language.scss │ │ └── Language.jsx │ ├── Map │ │ ├── Map.scss │ │ └── Map.jsx │ ├── Hero │ │ ├── Hero.scss │ │ └── Hero.jsx │ ├── ScrollControls │ │ ├── ScrollControls.scss │ │ └── ScrollControls.jsx │ └── Mode │ │ └── Mode.jsx ├── ThemeProvider.jsx ├── theme.js ├── index.css ├── App.jsx └── App.css ├── index.html ├── eslint.config.js ├── package.json ├── .gitignore ├── README.md └── license.md /public/images/arepa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laplazadevs/salarios/HEAD/public/images/arepa.png -------------------------------------------------------------------------------- /vite.config.js: -------------------------------------------------------------------------------- 1 | import { defineConfig } from 'vite' 2 | import react from '@vitejs/plugin-react' 3 | 4 | export default defineConfig({ 5 | base: '/', 6 | plugins: [react()], 7 | }) -------------------------------------------------------------------------------- /src/main.jsx: -------------------------------------------------------------------------------- 1 | import { StrictMode } from 'react' 2 | import { createRoot } from 'react-dom/client' 3 | import './index.css' 4 | import App from './App.jsx' 5 | 6 | createRoot(document.getElementById('root')).render( 7 | 8 | 9 | , 10 | ) -------------------------------------------------------------------------------- /src/components/TipeOfCompany/TypeOfCompany.scss: -------------------------------------------------------------------------------- 1 | .company-section { 2 | display: flex; 3 | flex-direction: column; 4 | align-items: center; 5 | justify-content: center; 6 | text-align: center; 7 | width: 100%; 8 | margin-bottom: 2rem; 9 | 10 | .note { 11 | margin-top: 1rem; 12 | margin-bottom: 1rem; 13 | } 14 | } -------------------------------------------------------------------------------- /src/components/EnglishSalary/EnglishSalary.scss: -------------------------------------------------------------------------------- 1 | .english-section { 2 | display: flex; 3 | flex-direction: column; 4 | align-items: center; 5 | justify-content: center; 6 | text-align: center; 7 | width: 100%; 8 | margin-bottom: 2rem; 9 | 10 | .note { 11 | margin-top: 1rem; 12 | margin-bottom: 1rem; 13 | } 14 | } -------------------------------------------------------------------------------- /src/components/SalaryVsExperience/SalaryVsExperience.scss: -------------------------------------------------------------------------------- 1 | .experience-section { 2 | display: flex; 3 | flex-direction: column; 4 | align-items: center; 5 | justify-content: center; 6 | text-align: center; 7 | width: 100%; 8 | margin-bottom: 2rem; 9 | 10 | .note { 11 | margin-top: 1rem; 12 | margin-bottom: 1rem; 13 | } 14 | } -------------------------------------------------------------------------------- /src/components/SalaryVsLanguage/SalaryVsLanguage.scss: -------------------------------------------------------------------------------- 1 | .language-section { 2 | display: flex; 3 | flex-direction: column; 4 | align-items: center; 5 | justify-content: center; 6 | text-align: center; 7 | width: 100%; 8 | margin-bottom: 2rem; 9 | 10 | .note { 11 | margin-top: 1rem; 12 | margin-bottom: 1rem; 13 | } 14 | } 15 | 16 | -------------------------------------------------------------------------------- /src/ThemeProvider.jsx: -------------------------------------------------------------------------------- 1 | import React, { createContext, useContext } from "react"; 2 | import theme from "./theme"; 3 | 4 | const ThemeContext = createContext(theme); 5 | 6 | export const ThemeProvider = ({ children }) => ( 7 | {children} 8 | ); 9 | 10 | export const useTheme = () => useContext(ThemeContext); -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Encuesta de Salarios - La Plaza Devs 8 | 9 | 10 |
11 | 12 | 13 | -------------------------------------------------------------------------------- /src/theme.js: -------------------------------------------------------------------------------- 1 | const theme = { 2 | name: "Dark Modern", 3 | colors: { 4 | primary: "#69b3a2", 5 | secondary: "#d7263d", 6 | background: "#181C2A", 7 | surface: "#232946", 8 | text: "#fff", 9 | axis: "#fff", 10 | grid: "#444", 11 | accent: "#ffb347" 12 | }, 13 | font: { 14 | family: "'Montserrat', Arial, sans-serif", 15 | size: "16px", 16 | weight: "400" 17 | } 18 | }; 19 | 20 | export default theme; -------------------------------------------------------------------------------- /src/components/Navbar/Navbar.jsx: -------------------------------------------------------------------------------- 1 | import "./Navbar.scss"; 2 | import logo from "../../../public/images/arepa.png" 3 | 4 | const Navbar = () => { 5 | return ( 6 | 14 | ); 15 | }; 16 | 17 | export default Navbar; 18 | -------------------------------------------------------------------------------- /src/components/EnglishLevel/EnglishLevel.scss: -------------------------------------------------------------------------------- 1 | .english-section { 2 | display: flex; 3 | flex-direction: column; 4 | align-items: center; 5 | justify-content: center; 6 | text-align: center; 7 | width: 100%; 8 | margin-bottom: 2rem; 9 | 10 | svg { 11 | overflow: visible; 12 | } 13 | 14 | .nivel rect { 15 | transition: opacity 0.2s ease, stroke-width 0.2s ease; 16 | } 17 | 18 | @media (max-width: 768px) { 19 | .svg-container { 20 | padding: 0 1rem; 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /src/components/Education/Education.scss: -------------------------------------------------------------------------------- 1 | .education-section { 2 | display: flex; 3 | flex-direction: column; 4 | align-items: center; 5 | justify-content: center; 6 | text-align: center; 7 | width: 100%; 8 | margin-bottom: 2rem; 9 | 10 | svg { 11 | overflow: visible; 12 | } 13 | 14 | .boxes { 15 | transition: opacity 0.2s ease; 16 | 17 | &:hover { 18 | opacity: 0.9; 19 | } 20 | } 21 | 22 | @media (max-width: 768px) { 23 | .svg-container { 24 | padding: 0 1rem; 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/components/Language/Language.scss: -------------------------------------------------------------------------------- 1 | .language-section { 2 | display: flex; 3 | flex-direction: column; 4 | align-items: center; 5 | justify-content: center; 6 | text-align: center; 7 | width: 100%; 8 | margin-bottom: 2rem; 9 | 10 | svg { 11 | overflow: visible; 12 | } 13 | 14 | .bar { 15 | transition: opacity 0.2s ease; 16 | 17 | &:hover { 18 | opacity: 0.8; 19 | } 20 | } 21 | 22 | .legend-item { 23 | cursor: default; 24 | } 25 | 26 | @media (max-width: 768px) { 27 | .svg-container { 28 | padding: 0 1rem; 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /eslint.config.js: -------------------------------------------------------------------------------- 1 | import js from '@eslint/js' 2 | import globals from 'globals' 3 | import reactHooks from 'eslint-plugin-react-hooks' 4 | import reactRefresh from 'eslint-plugin-react-refresh' 5 | 6 | export default [ 7 | { ignores: ['dist'] }, 8 | { 9 | files: ['**/*.{js,jsx}'], 10 | languageOptions: { 11 | ecmaVersion: 2020, 12 | globals: globals.browser, 13 | parserOptions: { 14 | ecmaVersion: 'latest', 15 | ecmaFeatures: { jsx: true }, 16 | sourceType: 'module', 17 | }, 18 | }, 19 | plugins: { 20 | 'react-hooks': reactHooks, 21 | 'react-refresh': reactRefresh, 22 | }, 23 | rules: { 24 | ...js.configs.recommended.rules, 25 | ...reactHooks.configs.recommended.rules, 26 | 'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }], 27 | 'react-refresh/only-export-components': [ 28 | 'warn', 29 | { allowConstantExport: true }, 30 | ], 31 | }, 32 | }, 33 | ] 34 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "salarios", 3 | "private": true, 4 | "version": "0.0.0", 5 | "type": "module", 6 | "scripts": { 7 | "dev": "vite", 8 | "build": "vite build", 9 | "lint": "eslint .", 10 | "preview": "vite preview", 11 | "deploy": "gh-pages -d dist --cname salarios.lplz.dev" 12 | }, 13 | "dependencies": { 14 | "@emotion/react": "^11.14.0", 15 | "@emotion/styled": "^11.14.1", 16 | "@mui/material": "^7.3.1", 17 | "animejs": "^4.1.3", 18 | "d3": "^7.9.0", 19 | "d3-tip": "^0.9.1", 20 | "react": "^19.1.1", 21 | "react-dom": "^19.1.1" 22 | }, 23 | "devDependencies": { 24 | "@eslint/js": "^9.34.0", 25 | "@types/react": "^19.1.12", 26 | "@types/react-dom": "^19.1.8", 27 | "@vitejs/plugin-react": "^5.0.1", 28 | "eslint": "^9.34.0", 29 | "eslint-plugin-react-hooks": "^5.2.0", 30 | "eslint-plugin-react-refresh": "^0.4.20", 31 | "gh-pages": "^6.3.0", 32 | "globals": "^16.3.0", 33 | "sass": "^1.91.0", 34 | "vite": "^7.1.3" 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/components/Map/Map.scss: -------------------------------------------------------------------------------- 1 | .map-container { 2 | max-width: 900px; 3 | margin: 0 auto; 4 | padding: 2rem 1rem; 5 | text-align: center; 6 | 7 | h4 { 8 | margin-bottom: 0.5 rem; 9 | } 10 | 11 | .map-description { 12 | margin-bottom: 2rem; 13 | font-size: 1rem; 14 | line-height: 1.6; 15 | } 16 | 17 | .map-wrapper { 18 | display: flex; 19 | flex-direction: row; 20 | align-items: center; 21 | justify-content: center; 22 | gap: 2rem; 23 | 24 | @media (max-width: 768px) { 25 | flex-direction: column; 26 | gap: 1rem; 27 | } 28 | } 29 | 30 | .map-svg { 31 | width: 100%; 32 | max-width: 600px; 33 | flex-shrink: 0; 34 | } 35 | 36 | .map-legend { 37 | display: flex; 38 | flex-direction: column; 39 | align-items: center; 40 | font-size: 0.9rem; 41 | gap: 0.5rem; 42 | 43 | .legend-gradient { 44 | width: 20px; 45 | height: 150px; 46 | background: linear-gradient(to top, #37353E, #44444E, #715A5A, #D3DAD9); 47 | border-radius: 4px; 48 | border: 1px solid #44444E; 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /src/components/Navbar/Navbar.scss: -------------------------------------------------------------------------------- 1 | .navbar { 2 | position: fixed; 3 | top: 0; 4 | left: 0; 5 | width: 100%; 6 | height: 60px; 7 | background-color: #333; 8 | color: white; 9 | display: flex; 10 | align-items: center; 11 | z-index: 1000; 12 | box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 13 | 14 | .container { 15 | max-width: 1200px; 16 | margin: 0 auto; 17 | padding: 0 1rem; 18 | display: flex; 19 | align-items: center; 20 | justify-content: space-between; 21 | width: 100%; 22 | 23 | @media (max-width: 768px) { 24 | padding: 0 0.5rem; 25 | } 26 | } 27 | 28 | .left, 29 | .center, 30 | .right { 31 | display: flex; 32 | align-items: center; 33 | } 34 | 35 | .brand { 36 | font-size: 1.5rem; 37 | font-weight: bold; 38 | color: white; 39 | letter-spacing: 0.05em; 40 | } 41 | .logo { 42 | width: 40px; 43 | height: auto; 44 | } 45 | .center { 46 | justify-content: center; 47 | flex: 1; 48 | } 49 | 50 | .right { 51 | gap: 1rem; 52 | 53 | .link { 54 | color: #e5e7eb; 55 | text-decoration: none; 56 | transition: color 0.3s ease; 57 | 58 | &:hover { 59 | color: white; 60 | } 61 | } 62 | } 63 | } -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- 1 | :root { 2 | font-family: system-ui, Avenir, Helvetica, Arial, sans-serif; 3 | line-height: 1.5; 4 | font-weight: 400; 5 | 6 | color-scheme: light dark; 7 | color: rgba(255, 255, 255, 0.87); 8 | background-color: #242424; 9 | 10 | font-synthesis: none; 11 | text-rendering: optimizeLegibility; 12 | -webkit-font-smoothing: antialiased; 13 | -moz-osx-font-smoothing: grayscale; 14 | } 15 | 16 | html { 17 | scroll-behavior: smooth; 18 | overflow: hidden; 19 | height: 100vh; 20 | } 21 | 22 | a { 23 | font-weight: 500; 24 | color: #646cff; 25 | text-decoration: inherit; 26 | } 27 | a:hover { 28 | color: #535bf2; 29 | } 30 | 31 | body { 32 | margin: 0; 33 | min-width: 320px; 34 | height: 100vh; 35 | overflow: hidden; 36 | } 37 | 38 | h1 { 39 | font-size: 3.2em; 40 | line-height: 1.1; 41 | } 42 | 43 | button { 44 | border-radius: 8px; 45 | border: 1px solid transparent; 46 | padding: 0.6em 1.2em; 47 | font-size: 1em; 48 | font-weight: 500; 49 | font-family: inherit; 50 | background-color: #1a1a1a; 51 | cursor: pointer; 52 | transition: border-color 0.25s; 53 | } 54 | button:hover { 55 | border-color: #646cff; 56 | } 57 | button:focus, 58 | button:focus-visible { 59 | outline: 4px auto -webkit-focus-ring-color; 60 | } 61 | 62 | @media (prefers-color-scheme: light) { 63 | :root { 64 | color: #213547; 65 | background-color: #ffffff; 66 | } 67 | a:hover { 68 | color: #747bff; 69 | } 70 | button { 71 | background-color: #f9f9f9; 72 | } 73 | } -------------------------------------------------------------------------------- /src/components/Hero/Hero.scss: -------------------------------------------------------------------------------- 1 | .hero-section { 2 | display: flex; 3 | flex-direction: column; 4 | align-items: center; 5 | justify-content: center; 6 | text-align: center; 7 | padding: 4rem 1rem; 8 | width: 100%; 9 | min-height: calc(100vh - 60px); 10 | 11 | @media (max-width: 768px) { 12 | padding: 2rem 1rem; 13 | } 14 | 15 | @media (max-width: 480px) { 16 | padding: 1rem 0.5rem; 17 | } 18 | 19 | h1 { 20 | font-size: 2.25rem; 21 | font-weight: 700; 22 | color: #ffffff; 23 | margin-bottom: 1.5rem; 24 | 25 | @media (min-width: 480px) { 26 | font-size: 3.75rem; 27 | } 28 | } 29 | 30 | p, .hero-paragraph { 31 | font-size: 1rem; 32 | color: #d1d5db; 33 | margin-bottom: 2rem; 34 | max-width: 50rem; 35 | line-height: 1.6; 36 | 37 | @media (min-width: 480px) { 38 | font-size: 1rem; 39 | margin-bottom: 2.5rem; 40 | } 41 | 42 | @media (min-width: 768px) { 43 | font-size: 1rem; 44 | margin-bottom: 3rem; 45 | } 46 | 47 | &:last-of-type { 48 | margin-bottom: 0; 49 | } 50 | 51 | a { 52 | color: #60a5fa; 53 | text-decoration: underline; 54 | 55 | &:hover { 56 | color: #93c5fd; 57 | } 58 | } 59 | } 60 | 61 | .button-group { 62 | display: flex; 63 | gap: 1rem; 64 | 65 | button { 66 | background-color: #2563eb; // bg-blue-600 67 | color: #ffffff; 68 | padding: 0.75rem 1.5rem; 69 | border-radius: 0.5rem; 70 | font-weight: 600; 71 | transition: background-color 0.3s ease; 72 | 73 | &:hover { 74 | background-color: #1d4ed8; // bg-blue-700 75 | } 76 | } 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | pnpm-debug.log* 8 | lerna-debug.log* 9 | 10 | node_modules 11 | dist 12 | dist-ssr 13 | *.local 14 | 15 | # Editor directories and files 16 | .vscode/* 17 | !.vscode/extensions.json 18 | .idea 19 | .DS_Store 20 | *.suo 21 | *.ntvs* 22 | *.njsproj 23 | *.sln 24 | *.sw? 25 | 26 | .DS_Store 27 | .AppleDouble 28 | .LSOverride 29 | Icon[] 30 | 31 | # Thumbnails 32 | ._* 33 | 34 | # Files that might appear in the root of a volume 35 | .DocumentRevisions-V100 36 | .fseventsd 37 | .Spotlight-V100 38 | .TemporaryItems 39 | .Trashes 40 | .VolumeIcon.icns 41 | .com.apple.timemachine.donotpresent 42 | 43 | # Directories potentially created on remote AFP share 44 | .AppleDB 45 | .AppleDesktop 46 | Network Trash Folder 47 | Temporary Items 48 | .apdisk 49 | 50 | # Windows thumbnail cache files 51 | Thumbs.db 52 | Thumbs.db:encryptable 53 | ehthumbs.db 54 | ehthumbs_vista.db 55 | 56 | # Dump file 57 | *.stackdump 58 | 59 | # Folder config file 60 | [Dd]esktop.ini 61 | 62 | # Recycle Bin used on file shares 63 | $RECYCLE.BIN/ 64 | 65 | # Windows Installer files 66 | *.cab 67 | *.msi 68 | *.msix 69 | *.msm 70 | *.msp 71 | 72 | # Windows shortcuts 73 | *.lnk 74 | 75 | *~ 76 | 77 | # temporary files which can be created if a process still has a handle open of a deleted file 78 | .fuse_hidden* 79 | 80 | # Metadata left by Dolphin file manager, which comes with KDE Plasma 81 | .directory 82 | 83 | # Linux trash folder which might appear on any partition or disk 84 | .Trash-* 85 | 86 | # .nfs files are created when an open file is removed but is still being accessed 87 | .nfs* 88 | 89 | # Log files created by default by the nohup command 90 | nohup.out -------------------------------------------------------------------------------- /src/components/ScrollControls/ScrollControls.scss: -------------------------------------------------------------------------------- 1 | .scroll-controls { 2 | position: fixed; 3 | right: 2rem; 4 | top: 50%; 5 | transform: translateY(-50%); 6 | display: flex; 7 | flex-direction: column; 8 | gap: 0.5rem; 9 | z-index: 999; 10 | 11 | @media (max-width: 768px) { 12 | right: 1rem; 13 | gap: 0.25rem; 14 | } 15 | 16 | @media (max-width: 480px) { 17 | right: 0.5rem; 18 | gap: 0.25rem; 19 | } 20 | } 21 | 22 | .scroll-btn { 23 | width: 3rem; 24 | height: 3rem; 25 | border: none; 26 | border-radius: 50%; 27 | background-color: rgba(255, 255, 255, 0.9); 28 | color: #333; 29 | font-size: 1.2rem; 30 | font-weight: bold; 31 | cursor: pointer; 32 | display: flex; 33 | align-items: center; 34 | justify-content: center; 35 | box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); 36 | transition: all 0.3s ease; 37 | 38 | &:hover { 39 | background-color: rgba(255, 255, 255, 1); 40 | transform: scale(1.1); 41 | box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); 42 | } 43 | 44 | &:active { 45 | transform: scale(0.95); 46 | } 47 | 48 | @media (max-width: 768px) { 49 | width: 2.5rem; 50 | height: 2.5rem; 51 | font-size: 1rem; 52 | } 53 | 54 | @media (max-width: 480px) { 55 | width: 2rem; 56 | height: 2rem; 57 | font-size: 0.8rem; 58 | } 59 | } 60 | 61 | .scroll-start { 62 | background-color: rgba(55, 53, 62, 0.9); 63 | color: white; 64 | 65 | &:hover { 66 | background-color: rgba(55, 53, 62, 1); 67 | } 68 | } 69 | 70 | .scroll-end { 71 | background-color: rgba(55, 53, 62, 0.9); 72 | color: white; 73 | 74 | &:hover { 75 | background-color: rgba(55, 53, 62, 1); 76 | } 77 | } 78 | 79 | .scroll-prev, .scroll-next { 80 | background-color: rgba(113, 90, 90, 0.9); 81 | color: white; 82 | 83 | &:hover { 84 | background-color: rgba(113, 90, 90, 1); 85 | } 86 | } 87 | -------------------------------------------------------------------------------- /src/components/Hero/Hero.jsx: -------------------------------------------------------------------------------- 1 | import Typography from '@mui/material/Typography'; 2 | import './Hero.scss'; 3 | 4 | const Hero = () => { 5 | return ( 6 |
7 | Descubre el Panorama Tecnológico en Colombia 2025 8 | 9 | La información cruda usada para este análisis se encuentra aquí, sin embargo fueron normalizados para que sean más coherentes y significativas. Los criterios usados fueron que el salario reportado por una jornada de 40 horas semanales no podía ser inferior a $1.425.500 COP, valor correspondiente al Salario Mínimo Legal Mensual Vigente (SMLMV) en Colombia para el año 2025, aplicable tanto a empresas nacionales como extranjeras. 10 | 11 | 12 | Adicionalmente, se realizó una conversión de los valores expresados en dólares estadounidenses a pesos colombianos, utilizando una Tasa Representativa del Mercado (TRM) de $4.000 COP. De igual forma, los salarios anuales fueron transformados a su equivalente mensual, lo que permite una comparación más clara y contextualizada con el salario mínimo vigente en Colombia. 13 | 14 | 15 | Para una exploración interactiva de los datos donde puedes cambiar diferentes valores y rangos, visita esta herramienta de visualización que te permitirá analizar la información de manera más dinámica. 16 | 17 |
18 | ); 19 | }; 20 | 21 | export default Hero; -------------------------------------------------------------------------------- /src/App.jsx: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import { ThemeProvider } from "./ThemeProvider"; 3 | import Nav from "./components/Navbar/Navbar"; 4 | import Hero from "./components/Hero/Hero"; 5 | import SalaryVsExperience from "./components/SalaryVsExperience/SalaryVsExperience"; 6 | import SalaryVsLanguage from "./components/SalaryVsLanguage/SalaryVsLanguage"; 7 | import TypeOfCompany from "./components/TipeOfCompany/TypeOfCompany" 8 | import EnglishLevel from "./components/EnglishLevel/EnglishLevel"; 9 | import LanguageChart from "./components/Language/Language"; 10 | import Map from "./components/Map/Map"; 11 | import EnglishSalary from "./components/EnglishSalary/EnglishSalary"; 12 | import "./App.css"; 13 | import Education from "./components/Education/Education"; 14 | import Mode from "./components/Mode/Mode"; 15 | import ScrollControls from "./components/ScrollControls/ScrollControls"; 16 | 17 | function App() { 18 | 19 | return ( 20 | 21 |
22 |
57 |
58 | ) 59 | } 60 | 61 | export default App -------------------------------------------------------------------------------- /src/components/ScrollControls/ScrollControls.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import './ScrollControls.scss'; 3 | 4 | const ScrollControls = () => { 5 | const sections = [ 6 | 'hero', 7 | 'map', 8 | 'languages', 9 | 'education', 10 | 'english-level', 11 | 'english-salary', 12 | 'work-mode', 13 | 'company-type', 14 | 'salary-language', 15 | 'salary-experience' 16 | ]; 17 | 18 | const scrollToSection = (sectionId) => { 19 | const element = document.getElementById(sectionId); 20 | if (element) { 21 | element.scrollIntoView({ 22 | behavior: 'smooth', 23 | block: 'start' 24 | }); 25 | } 26 | }; 27 | 28 | const getCurrentSectionIndex = () => { 29 | const mainContent = document.querySelector('.main-content'); 30 | if (!mainContent) return 0; 31 | 32 | const scrollTop = mainContent.scrollTop; 33 | const sectionHeight = window.innerHeight; 34 | return Math.round(scrollTop / sectionHeight); 35 | }; 36 | 37 | const scrollNext = () => { 38 | const currentIndex = getCurrentSectionIndex(); 39 | const nextIndex = Math.min(currentIndex + 1, sections.length - 1); 40 | scrollToSection(sections[nextIndex]); 41 | }; 42 | 43 | const scrollPrev = () => { 44 | const currentIndex = getCurrentSectionIndex(); 45 | const prevIndex = Math.max(currentIndex - 1, 0); 46 | scrollToSection(sections[prevIndex]); 47 | }; 48 | 49 | const scrollToStart = () => { 50 | scrollToSection(sections[0]); 51 | }; 52 | 53 | const scrollToEnd = () => { 54 | scrollToSection(sections[sections.length - 1]); 55 | }; 56 | 57 | return ( 58 |
59 | 66 | 73 | 80 | 87 |
88 | ); 89 | }; 90 | 91 | export default ScrollControls; 92 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Salarios de desarrolladores en Colombia 2 | Este repositorio contiene los resultados de encuestas sobre salarios de desarrolladores de software en Colombia y el sitio web para visualizarlos. 3 | 4 | ## Sitio web 5 | 6 | **Clonar el repositorio:** 7 | ```bash 8 | git clone https://github.com/laplazadevs/encuesta_de_salarios.git 9 | cd encuesta_de_salarios 10 | ``` 11 | 12 | **Instalar dependencias:** 13 | ```bash 14 | npm install 15 | ``` 16 | 17 | **Ejecutar en modo desarrollo:** 18 | ```bash 19 | npm run dev 20 | ``` 21 | El sitio estará disponible en `http://localhost:5173`. 22 | 23 | ### Construcción y despliegue 24 | 25 | 1. **Construir para producción:** 26 | ```bash 27 | npm run build 28 | ``` 29 | Los archivos optimizados se generarán en el directorio `dist/`. 30 | 31 | 2. **Vista previa de la construcción:** 32 | ```bash 33 | npm run preview 34 | ``` 35 | 36 | 3. **Desplegar en GitHub Pages:** 37 | ```bash 38 | npm run deploy 39 | ``` 40 | 41 | ### Scripts disponibles 42 | - `npm run dev` - Inicia el servidor de desarrollo. 43 | - `npm run build` - Construye la aplicación para producción. 44 | - `npm run preview` - Vista previa de la construcción local. 45 | - `npm run deploy` - Despliega el sitio en GitHub Pages. 46 | - `npm run lint` - Ejecuta el linter para verificar el código. 47 | 48 | ## Encuesta 2025 49 | Los resultados se encuentran en directorio `data` bajo el prefijo `2025*.csv`. Recopilan información anónima sobre experiencia, formación, ubicación, nivel de inglés, lenguajes de programación, modalidad de trabajo, tipo de empresa, tipo de contrato y remuneración, entre otros datos relevantes. La información no ha pasado por un proceso de preprocesamiento, por lo que puede contener errores o inconsistencias. Se recomienda revisar los datos antes de utilizarlos para análisis o visualizaciones. 50 | 51 | **Agradecimientos recolección de datos:** Alejandro Rios, Andres Santos, Andres Villegas, Brayan Hurtado, Daniel Granados, Daniel Mendoza, Daniel Sanchez, Danilo Plazas, Diego Avila, Guillermo Rodas, Isaias De La Hoz, Jahir Fiquitiva, Jorge Morales, Juan Romero, Julian David, Julian Franco Rua, Laura Ramos, Mateo Olarte, Ricardo Trejos, Sara Palacio, Sebastian Guevara, Wilson Tovar, Yeiner Fernandez. 52 | 53 | **Agradecimientos sitio web:** [Audreylopez22](https://github.com/Audreylopez22). 54 | 55 | ## Licencia 56 | 57 | El contenido de este repositorio se distribuye bajo la licencia [Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)](https://creativecommons.org/licenses/by-sa/4.0/). Esto significa que puedes compartir y adaptar el material siempre que otorgues el crédito correspondiente y distribuyas tus contribuciones bajo la misma licencia. 58 | 59 | Algunas preguntas fueron adaptadas de las encuestas publicadas por https://github.com/colombia-dev/data en los años 2019, 2020 y 2021 bajo la licencia Creative Commons Attribution-ShareAlike 4.0 (CC BY-SA 4.0). 60 | -------------------------------------------------------------------------------- /src/App.css: -------------------------------------------------------------------------------- 1 | /* Root and container styles */ 2 | #root { 3 | width: 100%; 4 | height: 100vh; 5 | margin: 0; 6 | padding: 0; 7 | overflow: hidden; 8 | } 9 | 10 | .app-container { 11 | width: 100%; 12 | height: 100vh; 13 | overflow: hidden; 14 | display: flex; 15 | flex-direction: column; 16 | } 17 | 18 | /* Main content with sticky scroll */ 19 | .main-content { 20 | flex: 1; 21 | width: 100%; 22 | overflow-y: auto; 23 | overflow-x: hidden; 24 | scroll-behavior: smooth; 25 | scroll-snap-type: y mandatory; 26 | 27 | /* Hide scrollbar for webkit browsers */ 28 | &::-webkit-scrollbar { 29 | display: none; 30 | } 31 | 32 | /* Hide scrollbar for Firefox */ 33 | scrollbar-width: none; 34 | -ms-overflow-style: none; 35 | } 36 | 37 | /* Section styles for sticky scroll */ 38 | .section { 39 | width: 100%; 40 | min-height: 100vh; 41 | display: flex; 42 | align-items: center; 43 | justify-content: center; 44 | scroll-snap-align: start; 45 | scroll-snap-stop: always; 46 | padding: 2rem 1rem; 47 | box-sizing: border-box; 48 | 49 | /* Responsive container */ 50 | > * { 51 | width: 100%; 52 | max-width: 1200px; 53 | margin: 0 auto; 54 | } 55 | 56 | /* Typography consistent styling */ 57 | h1, h2, h3, h4, h5, h6 { 58 | font-weight: 700 !important; 59 | text-align: center; 60 | margin-bottom: 2rem; 61 | } 62 | 63 | p, .MuiTypography-body1 { 64 | max-width: 50rem; 65 | margin: 0 auto 2rem auto; 66 | line-height: 1.6; 67 | text-align: center; 68 | } 69 | } 70 | 71 | /* Hero section - full height */ 72 | #hero { 73 | min-height: 100vh; 74 | padding-top: 60px; 75 | background-color: #37353E; 76 | } 77 | 78 | /* Section color palette */ 79 | #map { 80 | background-color: #44444E; 81 | } 82 | 83 | #languages { 84 | background-color: #715A5A; 85 | } 86 | 87 | #education { 88 | background-color: #D3DAD9; 89 | color: #333; 90 | 91 | h1, h2, h3, h4, h5, h6 { 92 | color: #333 !important; 93 | } 94 | 95 | p, .MuiTypography-body1 { 96 | color: #333 !important; 97 | } 98 | } 99 | 100 | #english-level { 101 | background-color: #37353E; 102 | } 103 | 104 | #english-salary { 105 | background-color: #44444E; 106 | } 107 | 108 | #work-mode { 109 | background-color: #715A5A; 110 | } 111 | 112 | #company-type { 113 | background-color: #D3DAD9; 114 | color: #333; 115 | 116 | h1, h2, h3, h4, h5, h6 { 117 | color: #333 !important; 118 | } 119 | 120 | p, .MuiTypography-body1 { 121 | color: #333 !important; 122 | } 123 | } 124 | 125 | #salary-language { 126 | background-color: #37353E; 127 | } 128 | 129 | #salary-experience { 130 | background-color: #44444E; 131 | } 132 | 133 | /* Responsive design adjustments */ 134 | @media (max-width: 768px) { 135 | .section { 136 | min-height: auto; 137 | padding: 1.5rem 1rem; 138 | scroll-snap-align: none; /* Disable snap on mobile for better scrolling */ 139 | } 140 | 141 | .main-content { 142 | scroll-snap-type: none; /* Disable snap scroll on mobile */ 143 | } 144 | 145 | #hero { 146 | min-height: 100vh; 147 | padding-top: 60px; 148 | margin-top: -60px; 149 | } 150 | } 151 | 152 | @media (max-width: 480px) { 153 | .section { 154 | padding: 1rem 0.5rem; 155 | } 156 | 157 | .section > * { 158 | padding: 0 0.5rem; 159 | } 160 | } 161 | 162 | /* Legacy styles for compatibility */ 163 | .logo { 164 | height: 6em; 165 | padding: 1.5em; 166 | will-change: filter; 167 | transition: filter 300ms; 168 | } 169 | 170 | .logo:hover { 171 | filter: drop-shadow(0 0 2em #646cffaa); 172 | } 173 | 174 | .logo.react:hover { 175 | filter: drop-shadow(0 0 2em #61dafbaa); 176 | } 177 | 178 | @keyframes logo-spin { 179 | from { 180 | transform: rotate(0deg); 181 | } 182 | to { 183 | transform: rotate(360deg); 184 | } 185 | } 186 | 187 | @media (prefers-reduced-motion: no-preference) { 188 | a:nth-of-type(2) .logo { 189 | animation: logo-spin infinite 20s linear; 190 | } 191 | } 192 | 193 | .card { 194 | padding: 2em; 195 | } 196 | 197 | .read-the-docs { 198 | color: #888; 199 | } 200 | -------------------------------------------------------------------------------- /src/components/Map/Map.jsx: -------------------------------------------------------------------------------- 1 | import React, { useEffect, useRef } from "react"; 2 | import * as d3 from "d3"; 3 | import Typography from "@mui/material/Typography"; 4 | import "./Map.scss"; 5 | 6 | const Map = () => { 7 | const ref = useRef(); 8 | 9 | useEffect(() => { 10 | // Cleanup function 11 | const cleanup = () => { 12 | d3.select(ref.current).selectAll("*").remove(); 13 | d3.select("body").select(".map-tooltip").remove(); 14 | }; 15 | 16 | cleanup(); 17 | 18 | const margin = { top: 40, right: 30, bottom: 50, left: 30 }; 19 | const width = 500 - margin.left - margin.right; 20 | const height = 500 - margin.top - margin.bottom; 21 | 22 | Promise.all([ 23 | d3.json(`${import.meta.env.BASE_URL}data/colombia.geo.json`), 24 | d3.csv(`${import.meta.env.BASE_URL}data/20250603_normalized.csv`) 25 | ]).then(([geoData, rawData]) => { 26 | const deptKey = "¿En qué departamento vive actualmente?"; 27 | 28 | const normalizaNombre = (nombre) => 29 | nombre 30 | ? nombre.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toUpperCase().trim() 31 | : ""; 32 | 33 | const conteo = d3.rollup( 34 | rawData, 35 | (v) => v.length, 36 | (d) => normalizaNombre(d[deptKey]) 37 | ); 38 | 39 | const projection = d3.geoMercator().fitSize([width, height], geoData); 40 | const path = d3.geoPath().projection(projection); 41 | 42 | const maxValue = d3.max(Array.from(conteo.values())); 43 | 44 | // Use palette colors for consistent theming 45 | const colorScale = d3.scaleSequential() 46 | .domain([1, maxValue]) 47 | .interpolator(d3.interpolateRgb("#D3DAD9", "#37353E")); 48 | 49 | d3.select(ref.current).select("svg").remove(); 50 | const svg = d3 51 | .select(ref.current) 52 | .append("svg") 53 | .attr("width", "100%") 54 | .attr("viewBox", `0 0 ${width + margin.left + margin.right} ${height + margin.top + margin.bottom}`) 55 | .attr("preserveAspectRatio", "xMidYMid meet"); 56 | 57 | const g = svg 58 | .append("g") 59 | .attr("transform", `translate(${margin.left},${margin.top})`); 60 | 61 | // Tooltip 62 | let tooltip = d3.select("body").select(".map-tooltip"); 63 | if (tooltip.empty()) { 64 | tooltip = d3 65 | .select("body") 66 | .append("div") 67 | .attr("class", "map-tooltip") 68 | .style("position", "absolute") 69 | .style("background", "#37353E") 70 | .style("color", "#D3DAD9") 71 | .style("padding", "8px 12px") 72 | .style("border-radius", "6px") 73 | .style("pointer-events", "none") 74 | .style("font-size", "14px") 75 | .style("box-shadow", "0 4px 12px rgba(0, 0, 0, 0.3)") 76 | .style("border", "1px solid #44444E") 77 | .style("opacity", 0); 78 | } 79 | 80 | // Dibuja los departamentos 81 | const getDepartmentRawName = (departmentName) => 82 | normalizaNombre( 83 | ["SANTAFE DE BOGOTA D.C", "CUNDINAMARCA"].includes(departmentName) 84 | ? "Cundinamarca - Bogotá" 85 | : departmentName 86 | ); 87 | 88 | g.selectAll("path") 89 | .data(geoData.features) 90 | .join("path") 91 | .attr("d", path) 92 | .attr("fill", (d) => { 93 | const cantidad = conteo.get(getDepartmentRawName(d.properties.NOMBRE_DPT)) || 0; 94 | return cantidad > 0 ? colorScale(cantidad) : "#715A5A"; 95 | }) 96 | .attr("stroke", "#44444E") 97 | .attr("stroke-width", 1.5) 98 | .on("mouseover", function (event, d) { 99 | const nombre = getDepartmentRawName(d.properties.NOMBRE_DPT); 100 | const cantidad = conteo.get(nombre) || 0; 101 | tooltip 102 | .style("opacity", 1) 103 | .html(`${nombre}
${cantidad} desarrolladores`) 104 | .style("left", event.pageX + 10 + "px") 105 | .style("top", event.pageY - 28 + "px"); 106 | }) 107 | .on("mousemove", function (event) { 108 | tooltip 109 | .style("left", event.pageX + 10 + "px") 110 | .style("top", event.pageY - 28 + "px"); 111 | }) 112 | .on("mouseout", function () { 113 | tooltip.style("opacity", 0); 114 | }); 115 | }).catch(error => { 116 | console.error('Error loading map data:', error); 117 | }); 118 | 119 | // Return cleanup function 120 | return cleanup; 121 | }, []); 122 | 123 | return ( 124 |
125 | 126 | Distribución por Departamento 127 | 128 | 129 | Gracias a los 1001 desarrolladores que respondieron la encuesta. Su participación fue clave para recolectar datos valiosos sobre las realidades laborales, tendencias tecnológicas y salarios en el desarrollo de software en Colombia para el 2025. Este proyecto no sería posible sin ustedes. ¡Mil gracias! 130 | 131 | 132 |
133 |
134 |
135 |

Menos

136 |
137 |

Más

138 | 139 |
140 |
141 |
142 | ); 143 | }; 144 | 145 | export default Map; 146 | -------------------------------------------------------------------------------- /src/components/Mode/Mode.jsx: -------------------------------------------------------------------------------- 1 | import React, { useEffect, useRef } from "react"; 2 | import * as d3 from "d3"; 3 | import Typography from "@mui/material/Typography"; 4 | 5 | const Mode = () => { 6 | const ref = useRef(); 7 | 8 | useEffect(() => { 9 | // Cleanup function 10 | const cleanup = () => { 11 | d3.select(ref.current).selectAll("*").remove(); 12 | d3.select("body").select(".mode-tooltip").remove(); 13 | }; 14 | 15 | cleanup(); 16 | 17 | const margin = { top: 40, right: 30, bottom: 80, left: 60 }, 18 | width = 700 - margin.left - margin.right, 19 | height = 400 - margin.top - margin.bottom; 20 | 21 | const svg = d3.select(ref.current) 22 | .append("svg") 23 | .attr("width", "100%") 24 | .attr("viewBox", `0 0 ${width + margin.left + margin.right} ${height + margin.top + margin.bottom}`) 25 | .append("g") 26 | .attr("transform", `translate(${margin.left},${margin.top})`); 27 | 28 | d3.csv(`${import.meta.env.BASE_URL}data/20250603_normalized.csv`).then((data) => { 29 | const inglesKey = "¿Cuál es su nivel de inglés? Marco de referencia Europeo"; 30 | const empresaKey = "¿Para qué tipo de empresa trabaja?"; 31 | const niveles = ["A1", "A2", "B1", "B2", "C1", "C2"]; 32 | 33 | // Define los tipos de empresa que quieres mostrar 34 | const tipos = [ 35 | "Extranjera", 36 | "Colombiana", 37 | "Freelance" 38 | ]; 39 | 40 | // Prepara los datos agrupados 41 | const conteo = niveles.map(nivel => { 42 | const nivelData = data.filter(d => { 43 | const match = d[inglesKey] && d[inglesKey].match(/(A1|A2|B1|B2|C1|C2)/); 44 | return match && match[1] === nivel; 45 | }); 46 | const counts = tipos.map(tipo => ({ 47 | tipo, 48 | cantidad: nivelData.filter(d => d[empresaKey] && d[empresaKey].toLowerCase().includes(tipo.toLowerCase())).length 49 | })); 50 | return { nivel, counts }; 51 | }); 52 | 53 | // Escalas 54 | const x0 = d3.scaleBand() 55 | .domain(niveles) 56 | .range([0, width]) 57 | .padding(0.2); 58 | 59 | const x1 = d3.scaleBand() 60 | .domain(tipos) 61 | .range([0, x0.bandwidth()]) 62 | .padding(0.05); 63 | 64 | const y = d3.scaleLinear() 65 | .domain([0, d3.max(conteo, d => d3.max(d.counts, c => c.cantidad)) * 1.1]) 66 | .nice() 67 | .range([height, 0]); 68 | 69 | // Use our color palette 70 | const paletteColors = ["#37353E", "#44444E", "#D3DAD9"]; 71 | const color = d3.scaleOrdinal() 72 | .domain(tipos) 73 | .range(paletteColors); 74 | 75 | // Eje X 76 | svg.append("g") 77 | .attr("transform", `translate(0,${height})`) 78 | .call(d3.axisBottom(x0)) 79 | .selectAll("text") 80 | .style("font-size", "16px") 81 | .style("fill", "#D3DAD9"); 82 | 83 | // Eje Y 84 | svg.append("g") 85 | .call(d3.axisLeft(y).ticks(8)); 86 | 87 | // Leyenda 88 | const legend = svg.append("g") 89 | .attr("transform", `translate(${width - 120},0)`); 90 | tipos.forEach((tipo, i) => { 91 | legend.append("rect") 92 | .attr("x", 0) 93 | .attr("y", i * 22) 94 | .attr("width", 18) 95 | .attr("height", 18) 96 | .attr("fill", color(tipo)); 97 | legend.append("text") 98 | .attr("x", 25) 99 | .attr("y", i * 22 + 14) 100 | .attr("fill", "#fff") 101 | .attr("font-size", 14) 102 | .text(tipo); 103 | }); 104 | 105 | // Tooltip 106 | let tooltip = d3.select("body").select(".mode-tooltip"); 107 | if (tooltip.empty()) { 108 | tooltip = d3.select("body") 109 | .append("div") 110 | .attr("class", "mode-tooltip") 111 | .style("position", "absolute") 112 | .style("background", "#222") 113 | .style("color", "#fff") 114 | .style("padding", "6px 10px") 115 | .style("border-radius", "4px") 116 | .style("pointer-events", "none") 117 | .style("font-size", "14px") 118 | .style("opacity", 0); 119 | } 120 | 121 | // Barras agrupadas 122 | svg.selectAll("g.nivel") 123 | .data(conteo) 124 | .join("g") 125 | .attr("class", "nivel") 126 | .attr("transform", d => `translate(${x0(d.nivel)},0)`) 127 | .selectAll("rect") 128 | .data(d => d.counts) 129 | .join("rect") 130 | .attr("x", d => x1(d.tipo)) 131 | .attr("y", d => y(d.cantidad)) 132 | .attr("width", x1.bandwidth()) 133 | .attr("height", d => height - y(d.cantidad)) 134 | .attr("fill", d => color(d.tipo)) 135 | .on("mouseover", function (event, d) { 136 | tooltip 137 | .style("opacity", 1) 138 | .html(`Cantidad: ${d.cantidad}`) 139 | .style("left", `${event.pageX + 10}px`) 140 | .style("top", `${event.pageY - 30}px`); 141 | d3.select(this).attr("fill", d3.rgb(color(d.tipo)).darker(1)); 142 | }) 143 | .on("mousemove", function (event) { 144 | tooltip 145 | .style("left", `${event.pageX + 10}px`) 146 | .style("top", `${event.pageY - 30}px`); 147 | }) 148 | .on("mouseout", function (event, d) { 149 | tooltip.style("opacity", 0); 150 | d3.select(this).attr("fill", color(d.tipo)); 151 | }); 152 | 153 | // Ejes etiquetas 154 | svg.append("text") 155 | .attr("x", width / 2) 156 | .attr("y", height + 60) 157 | .attr("text-anchor", "middle") 158 | .attr("fill", "white") 159 | .text("Nivel de inglés (MCER)"); 160 | 161 | svg.append("text") 162 | .attr("transform", "rotate(-90)") 163 | .attr("x", -height / 2) 164 | .attr("y", -45) 165 | .attr("text-anchor", "middle") 166 | .attr("fill", "white") 167 | .text("Cantidad de personas"); 168 | }); 169 | }, []); 170 | 171 | return ( 172 |
173 | Nivel de inglés vs Tipo de empresa 174 | 175 | La asociacion de niveles intermedios de ingles y salario se refuerza al observar que, a partir del nivel B2, la mayoría de personas trabaja en empresas extranjeras, especialmente en los niveles C1 y C2, donde esta diferencia es aún más marcada. En contraste, el trabajo freelance es poco común en todos los niveles del idioma. 176 | 177 |
178 |
179 | ); 180 | }; 181 | 182 | export default Mode; -------------------------------------------------------------------------------- /src/components/SalaryVsLanguage/SalaryVsLanguage.jsx: -------------------------------------------------------------------------------- 1 | import React, { useEffect, useRef } from "react"; 2 | import * as d3 from "d3"; 3 | import Typography from '@mui/material/Typography'; 4 | import "./SalaryVsLanguage.scss"; 5 | 6 | const SalaryVsLanguage = () => { 7 | const d3Container = useRef(null); 8 | 9 | useEffect(() => { 10 | // Cleanup function 11 | const cleanup = () => { 12 | d3.select(d3Container.current).selectAll("*").remove(); 13 | d3.select("body").select(".salary-language-tooltip").remove(); 14 | }; 15 | 16 | cleanup(); 17 | 18 | const margin = { top: 40, right: 150, bottom: 40, left: 150 }, 19 | width = 900 - margin.left - margin.right, 20 | height = 600 - margin.top - margin.bottom, 21 | radius = Math.min(width, height) / 2; 22 | 23 | const svg = d3 24 | .select(d3Container.current) 25 | .append("svg") 26 | .attr("width", "100%") 27 | .attr("viewBox", `0 0 ${width + margin.left + margin.right} ${height + margin.top + margin.bottom}`) 28 | .append("g") 29 | .attr("transform", `translate(${margin.left + width/2},${margin.top + height/2})`); 30 | 31 | d3.csv(`${import.meta.env.BASE_URL}data/20250603_normalized.csv`).then((data) => { 32 | const langKey = "¿En cuál de los siguientes lenguajes de programación ocupa la mayor parte de su tiempo laboral?"; 33 | const salarioKey = "Total COP"; 34 | 35 | // Filter and process data - the normalized CSV should have clean numbers 36 | const filteredData = data.filter(d => 37 | d[langKey]?.trim() && 38 | d[salarioKey] && 39 | !isNaN(+d[salarioKey]) 40 | ); 41 | 42 | const salarioPorLenguaje = d3.rollups( 43 | filteredData, 44 | v => ({ 45 | avgSalary: d3.mean(v, d => +d[salarioKey]), 46 | medianSalary: d3.median(v, d => +d[salarioKey]), 47 | count: v.length 48 | }), 49 | d => d[langKey].trim() 50 | ); 51 | 52 | // Filter out languages with less than 3 people for statistical relevance 53 | const sorted = salarioPorLenguaje 54 | .filter(([language, stats]) => stats.count >= 3) 55 | .sort((a, b) => d3.descending(a[1].avgSalary, b[1].avgSalary)) 56 | .map(([language, stats]) => ({ 57 | language, 58 | avgSalary: stats.avgSalary, 59 | medianSalary: stats.medianSalary, 60 | count: stats.count 61 | })); 62 | 63 | // Create pie generator 64 | const pie = d3.pie() 65 | .value(d => d.count) 66 | .sort((a, b) => d3.descending(a.avgSalary, b.avgSalary)); 67 | 68 | // Create arc generator 69 | const arc = d3.arc() 70 | .innerRadius(0) 71 | .outerRadius(radius); 72 | 73 | // Create arc generator for labels 74 | const labelArc = d3.arc() 75 | .innerRadius(radius + 10) 76 | .outerRadius(radius + 10); 77 | 78 | // Use a more colorful and varied color scheme 79 | const color = d3.scaleOrdinal() 80 | .domain(sorted.map(d => d.language)) 81 | .range([ 82 | "#e41a1c", "#377eb8", "#4daf4a", "#984ea3", "#ff7f00", 83 | "#ffff33", "#a65628", "#f781bf", "#999999", "#66c2a5", 84 | "#fc8d62", "#8da0cb", "#e78ac3", "#a6d854", "#ffd92f", 85 | "#e5c494", "#b3b3b3", "#1b9e77", "#d95f02", "#7570b3" 86 | ]); 87 | 88 | // Modern tooltip 89 | const tooltip = d3.select("body") 90 | .append("div") 91 | .attr("class", "salary-language-tooltip") 92 | .style("position", "absolute") 93 | .style("background", "#37353E") 94 | .style("color", "#D3DAD9") 95 | .style("padding", "10px 14px") 96 | .style("border-radius", "8px") 97 | .style("border", "1px solid #44444E") 98 | .style("pointer-events", "none") 99 | .style("font-size", "13px") 100 | .style("box-shadow", "0 4px 8px rgba(0,0,0,0.3)") 101 | .style("opacity", 0); 102 | 103 | // Create pie slices 104 | const pieData = pie(sorted); 105 | 106 | svg.selectAll("path") 107 | .data(pieData) 108 | .join("path") 109 | .attr("d", arc) 110 | .attr("fill", d => color(d.data.language)) 111 | .attr("opacity", 0.8) 112 | .attr("stroke", "#333") 113 | .attr("stroke-width", 1) 114 | .style("cursor", "pointer") 115 | .on("mouseover", function(event, d) { 116 | const percentage = ((d.endAngle - d.startAngle) / (2 * Math.PI) * 100).toFixed(1); 117 | 118 | tooltip 119 | .style("opacity", 1) 120 | .html( 121 | `${d.data.language}
122 | Personas: ${d.data.count} (${percentage}%)
123 | Promedio: ${d3.format(",.0f")(d.data.avgSalary / 1_000_000)} M COP
124 | Mediana: ${d3.format(",.0f")(d.data.medianSalary / 1_000_000)} M COP` 125 | ) 126 | .style("left", `${event.pageX + 10}px`) 127 | .style("top", `${event.pageY - 30}px`); 128 | 129 | d3.select(this) 130 | .attr("opacity", 1) 131 | .attr("stroke-width", 3); 132 | }) 133 | .on("mouseout", function() { 134 | tooltip.style("opacity", 0); 135 | d3.select(this) 136 | .attr("opacity", 0.8) 137 | .attr("stroke-width", 1); 138 | }); 139 | 140 | // Create legend 141 | const legend = svg.append("g") 142 | .attr("class", "legend") 143 | .attr("transform", `translate(${radius + 40}, ${-radius})`); 144 | 145 | const legendItems = legend.selectAll(".legend-item") 146 | .data(sorted) 147 | .join("g") 148 | .attr("class", "legend-item") 149 | .attr("transform", (d, i) => `translate(0, ${i * 18})`); 150 | 151 | legendItems.append("rect") 152 | .attr("width", 12) 153 | .attr("height", 12) 154 | .attr("fill", d => color(d.language)) 155 | .attr("opacity", 0.8); 156 | 157 | legendItems.append("text") 158 | .attr("x", 18) 159 | .attr("y", 6) 160 | .attr("dy", "0.35em") 161 | .attr("fill", "#D3DAD9") 162 | .style("font-size", "11px") 163 | .text(d => { 164 | const shortName = d.language.length > 15 ? d.language.substring(0, 15) + "..." : d.language; 165 | return `${shortName} (${d.count})`; 166 | }); 167 | 168 | }).catch(error => { 169 | console.error('Error loading salary vs language data:', error); 170 | }); 171 | 172 | // Return cleanup function 173 | return cleanup; 174 | }, []); 175 | 176 | return ( 177 |
178 | 179 | Lenguajes de Programación 180 | 181 | 182 | Este gráfico circular muestra la distribución de profesionales por lenguaje de programación. El tamaño de cada segmento representa la cantidad de desarrolladores que usan principalmente ese lenguaje. 183 | Los tooltips muestran información detallada incluyendo salarios promedio y mediana para cada tecnología. 184 | Los lenguajes más populares como JavaScript, Python y Java dominan el mercado laboral colombiano. 185 | 186 |
187 |
188 | ); 189 | }; 190 | 191 | export default SalaryVsLanguage; -------------------------------------------------------------------------------- /src/components/EnglishLevel/EnglishLevel.jsx: -------------------------------------------------------------------------------- 1 | import React, { useEffect, useRef } from "react"; 2 | import * as d3 from "d3"; 3 | import Typography from '@mui/material/Typography'; 4 | import "./EnglishLevel.scss"; 5 | 6 | const EnglishLevel = () => { 7 | const d3Container = useRef(null); 8 | 9 | useEffect(() => { 10 | // Cleanup function 11 | const cleanup = () => { 12 | d3.select(d3Container.current).selectAll("*").remove(); 13 | d3.select("body").select(".english-tooltip").remove(); 14 | }; 15 | 16 | cleanup(); 17 | 18 | const margin = { top: 40, right: 30, bottom: 80, left: 60 }, 19 | width = 700 - margin.left - margin.right, 20 | height = 400 - margin.top - margin.bottom; 21 | 22 | const svg = d3 23 | .select(d3Container.current) 24 | .append("svg") 25 | .attr("width", "100%") 26 | .attr("viewBox", `0 0 ${width + margin.left + margin.right} ${height + margin.top + margin.bottom}`) 27 | .append("g") 28 | .attr("transform", `translate(${margin.left},${margin.top})`); 29 | 30 | d3.csv(`${import.meta.env.BASE_URL}data/20250603_normalized.csv`).then((data) => { 31 | const inglesKey = "¿Cuál es su nivel de inglés? Marco de referencia Europeo"; 32 | const modoKey = "Su modo de trabajo es"; 33 | const niveles = ["A1", "A2", "B1", "B2", "C1", "C2"]; 34 | 35 | // Obtén todos los modos de trabajo únicos 36 | const modos = Array.from(new Set(data.map(d => d[modoKey]).filter(Boolean))); 37 | 38 | // Prepara los datos agrupados 39 | const conteo = niveles.map(nivel => { 40 | const nivelData = data.filter(d => { 41 | const match = d[inglesKey] && d[inglesKey].match(/(A1|A2|B1|B2|C1|C2)/); 42 | return match && match[1] === nivel; 43 | }); 44 | const counts = modos.map(modo => ({ 45 | modo, 46 | cantidad: nivelData.filter(d => d[modoKey] === modo).length 47 | })); 48 | return { nivel, counts }; 49 | }); 50 | 51 | // Escalas 52 | const x0 = d3.scaleBand() 53 | .domain(niveles) 54 | .range([0, width]) 55 | .padding(0.2); 56 | 57 | const x1 = d3.scaleBand() 58 | .domain(modos) 59 | .range([0, x0.bandwidth()]) 60 | .padding(0.05); 61 | 62 | const y = d3.scaleLinear() 63 | .domain([0, d3.max(conteo, d => d3.max(d.counts, c => c.cantidad)) * 1.1]) 64 | .nice() 65 | .range([height, 0]); 66 | 67 | // Use our color palette for work modes 68 | const paletteColors = ["#D3DAD9", "#44444E", "#715A5A", "#D3DAD9"]; 69 | const color = d3.scaleOrdinal() 70 | .domain(modos) 71 | .range(paletteColors.slice(0, modos.length)); 72 | 73 | // Eje X 74 | svg.append("g") 75 | .attr("transform", `translate(0,${height})`) 76 | .call(d3.axisBottom(x0)) 77 | .selectAll("text") 78 | .style("font-size", "16px") 79 | .style("fill", "#D3DAD9"); 80 | 81 | // Eje Y 82 | svg.append("g") 83 | .call(d3.axisLeft(y).ticks(8)) 84 | .selectAll("text") 85 | .style("fill", "#D3DAD9"); 86 | 87 | // Style axis lines 88 | svg.selectAll(".domain, .tick line") 89 | .style("stroke", "#44444E"); 90 | 91 | // Leyenda 92 | const legend = svg.append("g") 93 | .attr("transform", `translate(${width - 120},0)`); 94 | modos.forEach((modo, i) => { 95 | legend.append("rect") 96 | .attr("x", 0) 97 | .attr("y", i * 22) 98 | .attr("width", 18) 99 | .attr("height", 18) 100 | .attr("fill", color(modo)) 101 | .style("stroke", "#44444E") 102 | .style("stroke-width", 1); 103 | legend.append("text") 104 | .attr("x", 25) 105 | .attr("y", i * 22 + 14) 106 | .attr("fill", "#D3DAD9") 107 | .attr("font-size", 14) 108 | .text(modo); 109 | }); 110 | 111 | // Tooltip 112 | let tooltip = d3.select("body").select(".english-tooltip"); 113 | if (tooltip.empty()) { 114 | tooltip = d3.select("body") 115 | .append("div") 116 | .attr("class", "english-tooltip") 117 | .style("position", "absolute") 118 | .style("background", "#37353E") 119 | .style("color", "#D3DAD9") 120 | .style("padding", "8px 12px") 121 | .style("border-radius", "6px") 122 | .style("pointer-events", "none") 123 | .style("font-size", "14px") 124 | .style("box-shadow", "0 4px 12px rgba(0, 0, 0, 0.3)") 125 | .style("border", "1px solid #44444E") 126 | .style("opacity", 0); 127 | } 128 | 129 | // Barras agrupadas 130 | svg.selectAll("g.nivel") 131 | .data(conteo) 132 | .join("g") 133 | .attr("class", "nivel") 134 | .attr("transform", d => `translate(${x0(d.nivel)},0)`) 135 | .selectAll("rect") 136 | .data(d => d.counts) 137 | .join("rect") 138 | .attr("x", d => x1(d.modo)) 139 | .attr("y", d => y(d.cantidad)) 140 | .attr("width", x1.bandwidth()) 141 | .attr("height", d => height - y(d.cantidad)) 142 | .attr("fill", d => color(d.modo)) 143 | .style("stroke", "#44444E") 144 | .style("stroke-width", 1) 145 | .on("mouseover", function (event, d) { 146 | tooltip 147 | .style("opacity", 1) 148 | .html(`Cantidad: ${d.cantidad}`) 149 | .style("left", `${event.pageX + 10}px`) 150 | .style("top", `${event.pageY - 30}px`); 151 | d3.select(this) 152 | .style("opacity", 0.8) 153 | .style("stroke-width", 2); 154 | }) 155 | .on("mousemove", function (event) { 156 | tooltip 157 | .style("left", `${event.pageX + 10}px`) 158 | .style("top", `${event.pageY - 30}px`); 159 | }) 160 | .on("mouseout", function (event, d) { 161 | tooltip.style("opacity", 0); 162 | d3.select(this) 163 | .style("opacity", 1) 164 | .style("stroke-width", 1); 165 | }); 166 | 167 | // Ejes etiquetas 168 | svg.append("text") 169 | .attr("x", width / 2) 170 | .attr("y", height + 60) 171 | .attr("text-anchor", "middle") 172 | .attr("fill", "#D3DAD9") 173 | .style("font-size", "14px") 174 | .text("Nivel de inglés (MCER)"); 175 | 176 | svg.append("text") 177 | .attr("transform", "rotate(-90)") 178 | .attr("x", -height / 2) 179 | .attr("y", -45) 180 | .attr("text-anchor", "middle") 181 | .attr("fill", "#D3DAD9") 182 | .style("font-size", "14px") 183 | .text("Cantidad de personas"); 184 | }).catch(error => { 185 | console.error('Error loading english level data:', error); 186 | }); 187 | 188 | // Return cleanup function 189 | return cleanup; 190 | }, []); 191 | 192 | 193 | return ( 194 |
195 | 196 | Nivel de Inglés por Modalidad de Trabajo 197 | 198 | 199 | La mayoría de los encuestados se concentra en niveles intermedios de inglés, siendo B2 el más común, seguido de C1 y B1. Esto sugiere que una gran parte de los participantes posee un dominio funcional o intermedio del idioma. En contraste, los niveles básicos (A1 y A2) y el nivel más alto (C2) son menos frecuentes, lo que indica que pocos encuestados tienen un dominio muy limitado o total del inglés. Esta distribución resalta la importancia del inglés intermedio en el sector. 200 | 201 |
202 |
203 | ); 204 | }; 205 | 206 | export default EnglishLevel; -------------------------------------------------------------------------------- /src/components/EnglishSalary/EnglishSalary.jsx: -------------------------------------------------------------------------------- 1 | import React, { useEffect, useRef } from "react"; 2 | import * as d3 from "d3"; 3 | import Typography from "@mui/material/Typography"; 4 | import "./EnglishSalary.scss"; 5 | 6 | const EnglishSalary = () => { 7 | const d3Container = useRef(null); 8 | 9 | useEffect(() => { 10 | // Cleanup function 11 | const cleanup = () => { 12 | d3.select(d3Container.current).selectAll("*").remove(); 13 | d3.select("body").select(".english-salary-tooltip").remove(); 14 | }; 15 | 16 | cleanup(); 17 | 18 | const margin = { top: 40, right: 40, bottom: 40, left: 100 }, 19 | width = 700 - margin.left - margin.right, 20 | height = 500 - margin.top - margin.bottom; 21 | 22 | const svg = d3 23 | .select(d3Container.current) 24 | .append("svg") 25 | .attr("width", "100%") 26 | .attr( 27 | "viewBox", 28 | `0 0 ${width + margin.left + margin.right} ${height + margin.top + margin.bottom}` 29 | ) 30 | .append("g") 31 | .attr("transform", `translate(${margin.left},${margin.top})`); 32 | 33 | d3.csv(`${import.meta.env.BASE_URL}data/20250603_normalized.csv`).then((data) => { 34 | const inglesKey = "¿Cuál es su nivel de inglés? Marco de referencia Europeo"; 35 | const salarioKey = "Total COP"; 36 | const niveles = ["C2", "C1", "B2", "B1", "A2", "A1", "Cero"]; 37 | 38 | const puntos = data 39 | .map((d) => { 40 | const match = d[inglesKey]?.match(/(Cero|A1|A2|B1|B2|C1|C2)/); 41 | return match && d[salarioKey] && !isNaN(+d[salarioKey]) 42 | ? { nivel: match[1], salario: +d[salarioKey] } 43 | : null; 44 | }) 45 | .filter(Boolean); 46 | 47 | // Agrupar por nivel 48 | const dataGrouped = d3.group(puntos, (d) => d.nivel); 49 | 50 | // Escala Y (niveles) 51 | const y = d3.scalePoint() 52 | .domain(niveles) 53 | .range([0, height]) 54 | .padding(0.5); 55 | 56 | // Escala X (salario) 57 | const x = d3.scaleLinear() 58 | .domain([0, d3.max(puntos, (d) => d.salario) * 1.1]) 59 | .range([0, width]); 60 | 61 | // Ejes 62 | svg.append("g") 63 | .attr("transform", `translate(0,0)`) 64 | .call(d3.axisLeft(y)) 65 | .selectAll("text") 66 | .style("font-size", "12px") 67 | .style("fill", "#D3DAD9"); 68 | 69 | svg.append("g") 70 | .attr("transform", `translate(0, ${height})`) 71 | .call(d3.axisBottom(x).ticks(6).tickFormat((d) => d3.format(",.0f")(d / 1_000_000))) 72 | .selectAll("text") 73 | .style("font-size", "12px") 74 | .style("fill", "#D3DAD9"); 75 | 76 | // Style axis lines 77 | svg.selectAll(".domain, .tick line") 78 | .style("stroke", "#44444E"); 79 | 80 | // Tooltip 81 | const tooltip = d3.select("body") 82 | .append("div") 83 | .attr("class", "english-salary-tooltip") 84 | .style("position", "absolute") 85 | .style("background", "#37353E") 86 | .style("color", "#D3DAD9") 87 | .style("padding", "8px 12px") 88 | .style("border-radius", "6px") 89 | .style("border", "1px solid #44444E") 90 | .style("pointer-events", "none") 91 | .style("font-size", "13px") 92 | .style("opacity", 0); 93 | 94 | // Ejes etiquetas 95 | svg.append("text") 96 | .attr("x", width / 2) 97 | .attr("y", height + 35) 98 | .attr("text-anchor", "middle") 99 | .attr("fill", "#D3DAD9") 100 | .style("font-size", "14px") 101 | .text("Salario mensual (millones COP)"); 102 | 103 | svg.append("text") 104 | .attr("transform", "rotate(-90)") 105 | .attr("x", -height / 2) 106 | .attr("y", -70) 107 | .attr("text-anchor", "middle") 108 | .attr("fill", "#D3DAD9") 109 | .style("font-size", "14px") 110 | .text("Nivel de inglés (MCER)"); 111 | 112 | // Box plot 113 | niveles.forEach((nivel) => { 114 | const values = dataGrouped.get(nivel)?.map((d) => d.salario).sort(d3.ascending); 115 | if (!values || values.length < 5) return; 116 | 117 | const q1 = d3.quantile(values, 0.25); 118 | const median = d3.quantile(values, 0.5); 119 | const q3 = d3.quantile(values, 0.75); 120 | const min = d3.min(values); 121 | const max = d3.max(values); 122 | 123 | const centerY = y(nivel); 124 | 125 | // Caja 126 | svg.append("rect") 127 | .attr("x", x(q1)) 128 | .attr("y", centerY - 15) 129 | .attr("width", x(q3) - x(q1)) 130 | .attr("height", 30) 131 | .attr("stroke", "#44444E") 132 | .attr("stroke-width", 2) 133 | .attr("fill", "#715A5A") 134 | .attr("opacity", 0.8) 135 | .style("cursor", "pointer") 136 | .on("mouseover", function (event) { 137 | tooltip 138 | .style("opacity", 1) 139 | .html( 140 | `Nivel: ${nivel}
141 | Personas: ${values.length}
142 | Mediana: ${d3.format(",.0f")(median / 1_000_000)} M COP
143 | Q1: ${d3.format(",.0f")(q1 / 1_000_000)} M COP
144 | Q3: ${d3.format(",.0f")(q3 / 1_000_000)} M COP
145 | Rango: ${d3.format(",.0f")(min / 1_000_000)} - ${d3.format(",.0f")(max / 1_000_000)} M COP` 146 | ) 147 | .style("left", `${event.pageX + 10}px`) 148 | .style("top", `${event.pageY - 30}px`); 149 | 150 | d3.select(this) 151 | .attr("opacity", 1) 152 | .attr("stroke-width", 3); 153 | }) 154 | .on("mouseout", function () { 155 | tooltip.style("opacity", 0); 156 | d3.select(this) 157 | .attr("opacity", 0.8) 158 | .attr("stroke-width", 2); 159 | }); 160 | 161 | // Línea mediana 162 | svg.append("line") 163 | .attr("x1", x(median)) 164 | .attr("x2", x(median)) 165 | .attr("y1", centerY - 15) 166 | .attr("y2", centerY + 15) 167 | .attr("stroke", "#D3DAD9") 168 | .attr("stroke-width", 3); 169 | 170 | // Líneas min y max (bigotes) 171 | svg.append("line") 172 | .attr("x1", x(min)) 173 | .attr("x2", x(max)) 174 | .attr("y1", centerY) 175 | .attr("y2", centerY) 176 | .attr("stroke", "#44444E") 177 | .attr("stroke-width", 2); 178 | 179 | // Líneas en extremos 180 | svg.append("line") 181 | .attr("x1", x(min)) 182 | .attr("x2", x(min)) 183 | .attr("y1", centerY - 10) 184 | .attr("y2", centerY + 10) 185 | .attr("stroke", "#44444E") 186 | .attr("stroke-width", 2); 187 | 188 | svg.append("line") 189 | .attr("x1", x(max)) 190 | .attr("x2", x(max)) 191 | .attr("y1", centerY - 10) 192 | .attr("y2", centerY + 10) 193 | .attr("stroke", "#44444E") 194 | .attr("stroke-width", 2); 195 | }); 196 | }).catch(error => { 197 | console.error('Error loading english salary data:', error); 198 | }); 199 | 200 | // Return cleanup function 201 | return cleanup; 202 | }, []); 203 | 204 | return ( 205 |
206 | 207 | Nivel de Inglés y Salario Mensual 208 | 209 | 210 | La gráfica muestra que los niveles intermedios y altos de inglés (B2, C1 y C2) están asociados con salarios más altos y una mayor diversidad en los ingresos, mientras que los niveles bajos o sin conocimiento del idioma tienen salarios más bajos y menos variación. Esto sugiere que el dominio del inglés puede influir positivamente en el acceso a mejores oportunidades salariales en el sector. 211 | 212 |
213 | 214 |
215 | ); 216 | }; 217 | 218 | export default EnglishSalary; 219 | -------------------------------------------------------------------------------- /src/components/TipeOfCompany/TypeOfCompany.jsx: -------------------------------------------------------------------------------- 1 | import React, { useEffect, useRef } from "react"; 2 | import * as d3 from "d3"; 3 | import Typography from '@mui/material/Typography'; 4 | import "./TypeOfCompany.scss" 5 | 6 | const TypeOfCompany = () => { 7 | const d3Container = useRef(null); 8 | 9 | useEffect(() => { 10 | // Cleanup function 11 | const cleanup = () => { 12 | d3.select(d3Container.current).selectAll("*").remove(); 13 | d3.select("body").select(".company-tooltip").remove(); 14 | }; 15 | 16 | cleanup(); 17 | 18 | const margin = { top: 40, right: 30, bottom: 50, left: 120 }, 19 | width = 800 - margin.left - margin.right, 20 | height = 500 - margin.top - margin.bottom; 21 | 22 | const svg = d3 23 | .select(d3Container.current) 24 | .append("svg") 25 | .attr("width", "100%") 26 | .attr("viewBox", `0 0 ${width + margin.left + margin.right} ${height + margin.top + margin.bottom}`) 27 | .append("g") 28 | .attr("transform", `translate(${margin.left},${margin.top})`); 29 | 30 | function wrap(texts) { 31 | texts.each(function () { 32 | const text = d3.select(this), 33 | words = text.text().split(/\n/), 34 | y = text.attr("y"), 35 | x = text.attr("x"); 36 | 37 | text.text(null); 38 | 39 | words.forEach((word, i) => { 40 | text.append("tspan") 41 | .attr("x", x) 42 | .attr("y", y) 43 | .attr("dy", `${i * 1.1}em`) 44 | .text(word); 45 | }); 46 | }); 47 | } 48 | 49 | d3.csv(`${import.meta.env.BASE_URL}data/20250603_normalized.csv`).then((data) => { 50 | const empresaKey = "¿Para qué tipo de empresa trabaja?"; 51 | const salarioKey = "Total COP"; 52 | 53 | const grupos = d3.groups( 54 | data.filter(d => d[empresaKey] && d[salarioKey] && !isNaN(+d[salarioKey])), 55 | d => d[empresaKey] 56 | ); 57 | 58 | const boxData = grupos.map(([empresa, values]) => { 59 | const salarios = values.map(d => +d[salarioKey]).sort(d3.ascending); 60 | const q1 = d3.quantile(salarios, 0.25); 61 | const median = d3.quantile(salarios, 0.5); 62 | const q3 = d3.quantile(salarios, 0.75); 63 | const min = d3.min(salarios); 64 | const max = d3.max(salarios); 65 | return { empresa, min, q1, median, q3, max }; 66 | }); 67 | 68 | boxData.sort((a, b) => d3.descending(a.median, b.median)); 69 | 70 | const y = d3.scaleBand() 71 | .domain(boxData.map(d => d.empresa)) 72 | .range([0, height]) 73 | .padding(0.3); 74 | 75 | const x = d3.scaleLinear() 76 | .domain([ 77 | d3.min(boxData, d => d.min), 78 | d3.max(boxData, d => d.max) 79 | ]) 80 | .nice() 81 | .range([0, width]); 82 | 83 | svg.append("g") 84 | .attr("transform", `translate(0,${height})`) 85 | .call( 86 | d3.axisBottom(x) 87 | .ticks(20) 88 | .tickFormat(d => (d / 1_000_000)) 89 | ) 90 | .selectAll("text") 91 | .style("fill", "#37353E") 92 | .style("font-size", "12px"); 93 | 94 | svg.append("text") 95 | .attr("x", width / 2) 96 | .attr("y", height + 40) 97 | .attr("text-anchor", "middle") 98 | .attr("fill", "#37353E") 99 | .style("font-size", "14px") 100 | .text("Salario Mensual (millones COP)") 101 | 102 | svg.append("g") 103 | .call( 104 | d3.axisLeft(y) 105 | .tickFormat(d => d.split(' ').length > 2 ? d.replace(/(.+?\s.+?)\s(.+)/, '$1\n$2') : d) 106 | ) 107 | .selectAll(".tick text") 108 | .style("fill", "#37353E") 109 | .style("font-size", "12px") 110 | .call(wrap, margin.left - 20); 111 | 112 | // Style axis lines 113 | svg.selectAll(".domain, .tick line") 114 | .style("stroke", "#44444E"); 115 | 116 | // Tooltip 117 | const tooltip = d3.select("body") 118 | .append("div") 119 | .attr("class", "company-tooltip") 120 | .style("position", "absolute") 121 | .style("background", "#37353E") 122 | .style("color", "#D3DAD9") 123 | .style("padding", "8px 12px") 124 | .style("border-radius", "6px") 125 | .style("border", "1px solid #44444E") 126 | .style("pointer-events", "none") 127 | .style("font-size", "13px") 128 | .style("opacity", 0); 129 | 130 | svg.selectAll("vertLines") 131 | .data(boxData) 132 | .join("line") 133 | .attr("x1", d => x(d.min)) 134 | .attr("x2", d => x(d.max)) 135 | .attr("y1", d => y(d.empresa) + y.bandwidth() / 2) 136 | .attr("y2", d => y(d.empresa) + y.bandwidth() / 2) 137 | .attr("stroke", "#44444E") 138 | .attr("stroke-width", 2); 139 | 140 | svg.selectAll("boxes") 141 | .data(boxData) 142 | .join("rect") 143 | .attr("x", d => x(d.q1)) 144 | .attr("width", d => x(d.q3) - x(d.q1)) 145 | .attr("y", d => y(d.empresa) + y.bandwidth() / 4) 146 | .attr("height", y.bandwidth() / 2) 147 | .attr("stroke", "#44444E") 148 | .attr("stroke-width", 2) 149 | .attr("fill", "#715A5A") 150 | .attr("opacity", 0.7) 151 | .style("cursor", "pointer") 152 | .on("mouseover", function (event, d) { 153 | tooltip 154 | .style("opacity", 1) 155 | .html( 156 | `Empresa: ${d.empresa}
157 | Mediana: ${d3.format(",.0f")(d.median / 1_000_000)} M COP
158 | Q1: ${d3.format(",.0f")(d.q1 / 1_000_000)} M COP
159 | Q3: ${d3.format(",.0f")(d.q3 / 1_000_000)} M COP
160 | Rango: ${d3.format(",.0f")(d.min / 1_000_000)} - ${d3.format(",.0f")(d.max / 1_000_000)} M COP` 161 | ) 162 | .style("left", `${event.pageX + 10}px`) 163 | .style("top", `${event.pageY - 30}px`); 164 | 165 | d3.select(this) 166 | .attr("opacity", 1) 167 | .attr("stroke-width", 3); 168 | }) 169 | .on("mouseout", function () { 170 | tooltip.style("opacity", 0); 171 | d3.select(this) 172 | .attr("opacity", 0.7) 173 | .attr("stroke-width", 2); 174 | }); 175 | 176 | svg.selectAll("medianLines") 177 | .data(boxData) 178 | .join("line") 179 | .attr("x1", d => x(d.median)) 180 | .attr("x2", d => x(d.median)) 181 | .attr("y1", d => y(d.empresa) + y.bandwidth() / 4) 182 | .attr("y2", d => y(d.empresa) + y.bandwidth() * 3 / 4) 183 | .attr("stroke", "#D3DAD9") 184 | .attr("stroke-width", 3); 185 | 186 | svg.selectAll("minTicks") 187 | .data(boxData) 188 | .join("line") 189 | .attr("x1", d => x(d.min)) 190 | .attr("x2", d => x(d.min)) 191 | .attr("y1", d => y(d.empresa) + y.bandwidth() / 3) 192 | .attr("y2", d => y(d.empresa) + y.bandwidth() * 2 / 3) 193 | .attr("stroke", "#44444E") 194 | .attr("stroke-width", 2); 195 | 196 | svg.selectAll("maxTicks") 197 | .data(boxData) 198 | .join("line") 199 | .attr("x1", d => x(d.max)) 200 | .attr("x2", d => x(d.max)) 201 | .attr("y1", d => y(d.empresa) + y.bandwidth() / 3) 202 | .attr("y2", d => y(d.empresa) + y.bandwidth() * 2 / 3) 203 | .attr("stroke", "#44444E") 204 | .attr("stroke-width", 2); 205 | }).catch(error => { 206 | console.error('Error loading company data:', error); 207 | }); 208 | 209 | // Return cleanup function 210 | return cleanup; 211 | }, []); 212 | 213 | return ( 214 |
215 | 216 | Salario Mensual por Tipo de Empresa 217 | 218 | 219 | De la siguiente grafica se puede inferir que las empresas extranjeras y el trabajo freelance ofrecen los salarios medianos más altos, superando ampliamente a las empresas colombianas, especialmente a las que operan solo en el mercado nacional, las cuales presentan menor variabilidad y los salarios más bajos. 220 | 221 |
222 |
223 | ); 224 | }; 225 | 226 | export default TypeOfCompany; 227 | -------------------------------------------------------------------------------- /src/components/Education/Education.jsx: -------------------------------------------------------------------------------- 1 | import React, { useEffect, useRef } from "react"; 2 | import * as d3 from "d3"; 3 | import Typography from "@mui/material/Typography"; 4 | import "./Education.scss"; 5 | 6 | const Education = () => { 7 | const ref = useRef(); 8 | 9 | useEffect(() => { 10 | // Cleanup function 11 | const cleanup = () => { 12 | d3.select(ref.current).selectAll("*").remove(); 13 | d3.select("body").select(".education-tooltip").remove(); 14 | }; 15 | 16 | cleanup(); 17 | 18 | const margin = { top: 40, right: 30, bottom: 80, left: 80 }; 19 | const width = 700 - margin.left - margin.right; 20 | const height = 400 - margin.top - margin.bottom; 21 | 22 | const svg = d3.select(ref.current) 23 | .append("svg") 24 | .attr("width", "100%") 25 | .attr("viewBox", `0 0 ${width + margin.left + margin.right} ${height + margin.top + margin.bottom}`) 26 | .append("g") 27 | .attr("transform", `translate(${margin.left},${margin.top})`); 28 | 29 | d3.csv(`${import.meta.env.BASE_URL}data/20250603_normalized.csv`).then(data => { 30 | const eduKey = "¿Cuál es su nivel de formación académica?"; 31 | const salarioKey = "Total COP"; 32 | 33 | console.log("Loading normalized data..."); 34 | console.log("Raw data sample:", data.slice(0, 2)); 35 | 36 | // Filter and clean data more robustly 37 | const validData = data.filter(d => { 38 | const education = d[eduKey]; 39 | const salary = d[salarioKey]; 40 | 41 | // Check if education and salary exist and salary is a valid number 42 | return education && 43 | education.trim() !== "" && 44 | salary && 45 | salary.trim() !== "" && 46 | !isNaN(+salary) && 47 | +salary > 0; 48 | }); 49 | 50 | console.log("Valid data count:", validData.length); 51 | console.log("Education levels found:", [...new Set(validData.map(d => d[eduKey]))]); 52 | 53 | if (validData.length === 0) { 54 | console.error("No valid data found for education analysis"); 55 | return; 56 | } 57 | 58 | // Group salaries by education level 59 | const grupos = d3.groups(validData, d => d[eduKey]); 60 | 61 | // Calcula boxplot stats para cada grupo 62 | const boxData = grupos.map(([nivel, values]) => { 63 | const salarios = values.map(d => +d[salarioKey]).sort(d3.ascending); 64 | const q1 = d3.quantile(salarios, 0.25); 65 | const median = d3.quantile(salarios, 0.5); 66 | const q3 = d3.quantile(salarios, 0.75); 67 | const min = d3.min(salarios); 68 | const max = d3.max(salarios); 69 | return { nivel, min, q1, median, q3, max }; 70 | }); 71 | 72 | // Ordena por mediana descendente 73 | boxData.sort((a, b) => d3.descending(a.median, b.median)); 74 | 75 | const niveles = boxData.map(d => d.nivel); 76 | 77 | // Escalas 78 | const x = d3.scaleBand() 79 | .domain(niveles) 80 | .range([0, width]) 81 | .padding(0.3); 82 | 83 | const y = d3.scaleLinear() 84 | .domain([ 85 | 0, 86 | d3.max(boxData, d => d.max) 87 | ]) 88 | .nice() 89 | .range([height, 0]); 90 | 91 | // Eje X 92 | svg.append("g") 93 | .attr("transform", `translate(0,${height})`) 94 | .call(d3.axisBottom(x)) 95 | .selectAll("text") 96 | .attr("transform", "rotate(-25)") 97 | .style("text-anchor", "end") 98 | .style("font-size", "14px") 99 | .style("fill", "#37353E"); 100 | 101 | // Eje Y 102 | svg.append("g") 103 | .call(d3.axisLeft(y).ticks(8).tickFormat(d => d3.format(",.0f")(d / 1_000_000))) 104 | .selectAll("text") 105 | .style("fill", "#37353E"); 106 | 107 | // Style axis lines 108 | svg.selectAll(".domain, .tick line") 109 | .style("stroke", "#37353E"); 110 | 111 | // Etiquetas de ejes 112 | svg.append("text") 113 | .attr("transform", "rotate(-90)") 114 | .attr("x", -height / 2) 115 | .attr("y", -55) 116 | .attr("text-anchor", "middle") 117 | .attr("fill", "#37353E") 118 | .style("font-size", "14px") 119 | .text("Salario mensual (millones COP)"); 120 | 121 | svg.selectAll("text.cantidad") 122 | .data(boxData) 123 | .join("text") 124 | .attr("class", "cantidad") 125 | .attr("x", d => x(d.nivel) + x.bandwidth() / 2) 126 | .attr("y", -10) // Arriba del gráfico 127 | .attr("text-anchor", "middle") 128 | .attr("font-size", "13px") 129 | .attr("fill", "#37353E") 130 | .text(d => { 131 | const grupo = grupos.find(g => g[0] === d.nivel); 132 | return grupo ? `${grupo[1].length} personas` : ""; 133 | }); 134 | 135 | // Tooltip 136 | let tooltip = d3.select("body").select(".education-tooltip"); 137 | if (tooltip.empty()) { 138 | tooltip = d3.select("body") 139 | .append("div") 140 | .attr("class", "education-tooltip") 141 | .style("position", "absolute") 142 | .style("background", "#37353E") 143 | .style("color", "#D3DAD9") 144 | .style("padding", "8px 12px") 145 | .style("border-radius", "6px") 146 | .style("pointer-events", "none") 147 | .style("font-size", "14px") 148 | .style("box-shadow", "0 4px 12px rgba(0, 0, 0, 0.3)") 149 | .style("border", "1px solid #44444E") 150 | .style("opacity", 0); 151 | } 152 | 153 | // Líneas verticales (min-max) 154 | svg.selectAll("vertLines") 155 | .data(boxData) 156 | .join("line") 157 | .attr("x1", d => x(d.nivel) + x.bandwidth() / 2) 158 | .attr("x2", d => x(d.nivel) + x.bandwidth() / 2) 159 | .attr("y1", d => y(d.min)) 160 | .attr("y2", d => y(d.max)) 161 | .attr("stroke", "#37353E") 162 | .attr("stroke-width", 2); 163 | 164 | // Cajas (q1-q3) 165 | svg.selectAll("boxes") 166 | .data(boxData) 167 | .join("rect") 168 | .attr("x", d => x(d.nivel)) 169 | .attr("width", x.bandwidth()) 170 | .attr("y", d => y(d.q3)) 171 | .attr("height", d => y(d.q1) - y(d.q3)) 172 | .attr("stroke", "#37353E") 173 | .attr("stroke-width", 2) 174 | .attr("fill", "#44444E") 175 | .attr("opacity", 0.8) 176 | .on("mouseover", function (event, d) { 177 | tooltip 178 | .style("opacity", 1) 179 | .html( 180 | `${d.nivel}
181 | Mediana: $${d3.format(",.0f")(d.median)}
182 | Q1: $${d3.format(",.0f")(d.q1)}
183 | Q3: $${d3.format(",.0f")(d.q3)}
184 | Min: $${d3.format(",.0f")(d.min)}
185 | Max: $${d3.format(",.0f")(d.max)}` 186 | ) 187 | .style("left", `${event.pageX + 10}px`) 188 | .style("top", `${event.pageY - 30}px`); 189 | d3.select(this).attr("fill", "#715A5A"); 190 | }) 191 | .on("mousemove", function (event) { 192 | tooltip 193 | .style("left", `${event.pageX + 10}px`) 194 | .style("top", `${event.pageY - 30}px`); 195 | }) 196 | .on("mouseout", function () { 197 | tooltip.style("opacity", 0); 198 | d3.select(this).attr("fill", "#44444E"); 199 | }); 200 | 201 | // Línea de la mediana 202 | svg.selectAll("medianLines") 203 | .data(boxData) 204 | .join("line") 205 | .attr("x1", d => x(d.nivel)) 206 | .attr("x2", d => x(d.nivel) + x.bandwidth()) 207 | .attr("y1", d => y(d.median)) 208 | .attr("y2", d => y(d.median)) 209 | .attr("stroke", "#37353E") 210 | .attr("stroke-width", 3); 211 | }).catch(error => { 212 | console.error('Error loading education data:', error); 213 | }); 214 | 215 | // Return cleanup function 216 | return cleanup; 217 | }, []); 218 | 219 | return ( 220 |
221 | 222 | Salario y Nivel de Formación Académica 223 | 224 | 225 | Aunque parece que quienes tienen más estudios ganan más, esta diferencia podría deberse a que hay muchas más personas con pregrado y posgrado en la muestra. Al comparar bien, los salarios medianos no varían tanto entre niveles y muchos rangos se cruzan, así que la diferencia no necesariamente es tan grande o importante como parece. 226 | 227 |
228 |
229 | ); 230 | }; 231 | 232 | export default Education; -------------------------------------------------------------------------------- /src/components/Language/Language.jsx: -------------------------------------------------------------------------------- 1 | import React, { useEffect, useRef, useState} from "react"; 2 | import * as d3 from "d3"; 3 | import Typography from "@mui/material/Typography"; 4 | import "./Language.scss" 5 | 6 | const LanguageChart = () => { 7 | const svgRef = useRef(); 8 | const [totalesPorRango, setTotalesPorRango] = useState({}); 9 | const [chartData, setChartData] = useState([]); 10 | 11 | useEffect(() => { 12 | // Cleanup function 13 | const cleanup = () => { 14 | d3.select(svgRef.current).selectAll("*").remove(); 15 | d3.select("body").select(".language-tooltip").remove(); 16 | }; 17 | 18 | cleanup(); 19 | 20 | const margin = { top: 40, right: 120, bottom: 80, left: 80 }; 21 | const width = 800 - margin.left - margin.right; 22 | const height = 500 - margin.top - margin.bottom; 23 | 24 | d3.csv(`${import.meta.env.BASE_URL}data/20250603_normalized.csv`).then((rawData) => { 25 | const expKey = "¿Cuántos años de experiencia en desarrollo de software tiene?"; 26 | const langKey = "¿En cuál de los siguientes lenguajes de programación ocupa la mayor parte de su tiempo laboral?"; 27 | 28 | const rango = (exp) => { 29 | if (exp === "" || isNaN(+exp)) return null; 30 | const n = +exp; 31 | if (n < 0) return null; 32 | if (n <= 2) return "Junior"; 33 | if (n <= 5) return "Mid"; 34 | return "Senior"; 35 | }; 36 | 37 | // Group data by experience and language 38 | const agrupado = {}; 39 | rawData.forEach((d) => { 40 | const r = rango(d[expKey]); 41 | const l = d[langKey]; 42 | if (!r || !l) return; 43 | if (!agrupado[r]) agrupado[r] = {}; 44 | agrupado[r][l] = (agrupado[r][l] || 0) + 1; 45 | }); 46 | 47 | // Get top languages overall to ensure consistency across groups 48 | const allLanguages = {}; 49 | Object.values(agrupado).forEach(rangoData => { 50 | Object.entries(rangoData).forEach(([lang, count]) => { 51 | allLanguages[lang] = (allLanguages[lang] || 0) + count; 52 | }); 53 | }); 54 | 55 | const topLanguages = Object.entries(allLanguages) 56 | .sort((a, b) => b[1] - a[1]) 57 | .slice(0, 8) 58 | .map(([lang]) => lang); 59 | 60 | // Transform data for grouped bar chart 61 | const chartData = topLanguages.map(language => { 62 | const data = { language }; 63 | Object.keys(agrupado).forEach(rango => { 64 | data[rango] = agrupado[rango][language] || 0; 65 | }); 66 | return data; 67 | }); 68 | 69 | setChartData(chartData); 70 | 71 | // Calculate totals per experience level 72 | const totalesPorRango = {}; 73 | Object.entries(agrupado).forEach(([rango, lenguajes]) => { 74 | totalesPorRango[rango] = Object.values(lenguajes).reduce((acc, count) => acc + count, 0); 75 | }); 76 | setTotalesPorRango(totalesPorRango); 77 | 78 | // Create SVG with proper dimensions 79 | const svg = d3.select(svgRef.current) 80 | .attr("viewBox", `0 0 ${width + margin.left + margin.right} ${height + margin.top + margin.bottom}`) 81 | .attr("preserveAspectRatio", "xMidYMid meet"); 82 | 83 | const g = svg.append("g") 84 | .attr("transform", `translate(${margin.left},${margin.top})`); 85 | 86 | // Scales 87 | const x0 = d3.scaleBand() 88 | .domain(chartData.map(d => d.language)) 89 | .range([0, width]) 90 | .padding(0.1); 91 | 92 | const x1 = d3.scaleBand() 93 | .domain(['Junior', 'Mid', 'Senior']) 94 | .range([0, x0.bandwidth()]) 95 | .padding(0.05); 96 | 97 | const y = d3.scaleLinear() 98 | .domain([0, d3.max(chartData, d => Math.max(d.Junior, d.Mid, d.Senior))]) 99 | .nice() 100 | .range([height, 0]); 101 | 102 | // Color scale with palette colors 103 | const colorScale = d3.scaleOrdinal() 104 | .domain(['Junior', 'Mid', 'Senior']) 105 | .range(['#37353E', '#44444E', '#D3DAD9']); 106 | 107 | // Add axes 108 | g.append("g") 109 | .attr("transform", `translate(0,${height})`) 110 | .call(d3.axisBottom(x0)) 111 | .selectAll("text") 112 | .style("text-anchor", "middle") 113 | .style("font-size", "12px") 114 | .style("fill", "#D3DAD9"); 115 | 116 | g.append("g") 117 | .call(d3.axisLeft(y)) 118 | .selectAll("text") 119 | .style("font-size", "12px") 120 | .style("fill", "#D3DAD9"); 121 | 122 | // Add axis lines color 123 | g.selectAll(".domain, .tick line") 124 | .style("stroke", "#44444E"); 125 | 126 | // Add Y axis label 127 | g.append("text") 128 | .attr("transform", "rotate(-90)") 129 | .attr("y", 0 - margin.left + 20) 130 | .attr("x", 0 - (height / 2)) 131 | .attr("dy", "1em") 132 | .style("text-anchor", "middle") 133 | .style("font-size", "14px") 134 | .style("fill", "#D3DAD9") 135 | .text("Número de desarrolladores"); 136 | 137 | // Add bars 138 | const languageGroups = g.selectAll(".language-group") 139 | .data(chartData) 140 | .enter().append("g") 141 | .attr("class", "language-group") 142 | .attr("transform", d => `translate(${x0(d.language)},0)`); 143 | 144 | const experienceLevels = ['Junior', 'Mid', 'Senior']; 145 | 146 | languageGroups.selectAll(".bar") 147 | .data(d => experienceLevels.map(level => ({ 148 | level, 149 | value: d[level], 150 | language: d.language 151 | }))) 152 | .enter().append("rect") 153 | .attr("class", "bar") 154 | .attr("x", d => x1(d.level)) 155 | .attr("y", d => y(d.value)) 156 | .attr("width", x1.bandwidth()) 157 | .attr("height", d => height - y(d.value)) 158 | .attr("fill", d => colorScale(d.level)) 159 | .style("stroke", "#44444E") 160 | .style("stroke-width", 1); 161 | 162 | // Add legend 163 | const legend = g.append("g") 164 | .attr("transform", `translate(${width + 20}, 20)`); 165 | 166 | const legendItems = legend.selectAll(".legend-item") 167 | .data(experienceLevels) 168 | .enter().append("g") 169 | .attr("class", "legend-item") 170 | .attr("transform", (d, i) => `translate(0, ${i * 25})`); 171 | 172 | legendItems.append("rect") 173 | .attr("width", 18) 174 | .attr("height", 18) 175 | .attr("fill", d => colorScale(d)) 176 | .style("stroke", "#44444E") 177 | .style("stroke-width", 1); 178 | 179 | legendItems.append("text") 180 | .attr("x", 25) 181 | .attr("y", 9) 182 | .attr("dy", "0.35em") 183 | .style("font-size", "14px") 184 | .style("fill", "#D3DAD9") 185 | .text(d => d); 186 | 187 | // Tooltip 188 | let tooltip = d3.select("body").select(".language-tooltip"); 189 | if (tooltip.empty()) { 190 | tooltip = d3 191 | .select("body") 192 | .append("div") 193 | .attr("class", "language-tooltip") 194 | .style("position", "absolute") 195 | .style("background", "#37353E") 196 | .style("color", "#D3DAD9") 197 | .style("padding", "8px 12px") 198 | .style("border-radius", "6px") 199 | .style("pointer-events", "none") 200 | .style("font-size", "14px") 201 | .style("box-shadow", "0 4px 12px rgba(0, 0, 0, 0.3)") 202 | .style("border", "1px solid #44444E") 203 | .style("opacity", 0); 204 | } 205 | 206 | languageGroups.selectAll(".bar") 207 | .on("mouseover", function (event, d) { 208 | tooltip 209 | .style("opacity", 1) 210 | .html( 211 | `${d.value} desarrolladores` 212 | ) 213 | .style("left", event.pageX + 10 + "px") 214 | .style("top", event.pageY - 28 + "px"); 215 | }) 216 | .on("mousemove", function (event) { 217 | tooltip 218 | .style("left", event.pageX + 10 + "px") 219 | .style("top", event.pageY - 28 + "px"); 220 | }) 221 | .on("mouseout", function () { 222 | tooltip.style("opacity", 0); 223 | }); 224 | }).catch(error => { 225 | console.error('Error loading language data:', error); 226 | }); 227 | 228 | // Return cleanup function 229 | return cleanup; 230 | }, []); 231 | 232 | return ( 233 |
234 | Experiencia y Lenguaje 235 | 236 | En la gráfica se analizaron los rangos de experiencia definidos como: Junior (0 a 2 años), Mid (2 a 5 años) y Senior (más de 5 años, aunque este último depende más de habilidades que del tiempo). 237 | JavaScript, Python y TypeScript destacan como los lenguajes más populares en todos los niveles, lo que refleja su alta demanda en la industria. 238 | Los perfiles Junior y Mid muestran una mayor diversidad de lenguajes utilizados. 239 | En cambio, los desarrolladores Senior tienden a enfocarse en un número menor de tecnologías clave, lo que sugiere una mayor especialización con la experiencia. 240 | 241 |
242 | 248 |
249 |
250 | {Object.entries(totalesPorRango).map(([rango, total]) => ( 251 | 252 | {rango}: {total} desarrolladores 253 | 254 | ))} 255 |
256 |
257 | ); 258 | }; 259 | 260 | export default LanguageChart; 261 | -------------------------------------------------------------------------------- /src/components/SalaryVsExperience/SalaryVsExperience.jsx: -------------------------------------------------------------------------------- 1 | import React, { useEffect, useRef } from "react"; 2 | import * as d3 from "d3"; 3 | import Typography from '@mui/material/Typography'; 4 | import "./SalaryVsExperience.scss"; 5 | 6 | const SalaryVsExperience = () => { 7 | const d3Container = useRef(null); 8 | 9 | useEffect(() => { 10 | // Cleanup function 11 | const cleanup = () => { 12 | d3.select(d3Container.current).selectAll("*").remove(); 13 | d3.select("body").select(".experience-tooltip").remove(); 14 | }; 15 | 16 | cleanup(); 17 | 18 | const margin = { top: 40, right: 120, bottom: 60, left: 100 }, 19 | width = 900 - margin.left - margin.right, 20 | height = 500 - margin.top - margin.bottom; 21 | 22 | const svg = d3 23 | .select(d3Container.current) 24 | .append("svg") 25 | .attr("width", "100%") 26 | .attr("viewBox", `0 0 ${width + margin.left + margin.right} ${height + margin.top + margin.bottom}`) 27 | .append("g") 28 | .attr("transform", `translate(${margin.left},${margin.top})`); 29 | 30 | d3.csv(`${import.meta.env.BASE_URL}data/20250603_normalized.csv`).then((data) => { 31 | const experienciaKey = "¿Cuántos años de experiencia en desarrollo de software tiene?"; 32 | const salarioKey = "Total COP"; 33 | 34 | const filtered = data 35 | .filter( 36 | (d) => 37 | d[experienciaKey] && 38 | d[salarioKey] && 39 | !isNaN(+d[experienciaKey]) && 40 | !isNaN(+d[salarioKey]) 41 | ) 42 | .map((d) => ({ 43 | experiencia: +d[experienciaKey], 44 | salario: +d[salarioKey], 45 | })); 46 | 47 | // Create bins for both dimensions 48 | const xBins = 15; // Experience bins 49 | const yBins = 12; // Salary bins 50 | 51 | const xExtent = d3.extent(filtered, d => d.experiencia); 52 | const yExtent = d3.extent(filtered, d => d.salario); 53 | 54 | const xScale = d3.scaleLinear() 55 | .domain(xExtent) 56 | .range([0, width]); 57 | 58 | const yScale = d3.scaleLinear() 59 | .domain(yExtent) 60 | .range([height, 0]); 61 | 62 | // Create bin boundaries 63 | const xStep = (xExtent[1] - xExtent[0]) / xBins; 64 | const yStep = (yExtent[1] - yExtent[0]) / yBins; 65 | 66 | // Create 2D bins 67 | const bins = []; 68 | for (let i = 0; i < xBins; i++) { 69 | for (let j = 0; j < yBins; j++) { 70 | bins.push({ 71 | x0: xExtent[0] + i * xStep, 72 | x1: xExtent[0] + (i + 1) * xStep, 73 | y0: yExtent[0] + j * yStep, 74 | y1: yExtent[0] + (j + 1) * yStep, 75 | count: 0, 76 | data: [] 77 | }); 78 | } 79 | } 80 | 81 | // Populate bins 82 | filtered.forEach(d => { 83 | const xBin = Math.min(Math.floor((d.experiencia - xExtent[0]) / xStep), xBins - 1); 84 | const yBin = Math.min(Math.floor((d.salario - yExtent[0]) / yStep), yBins - 1); 85 | const binIndex = yBin * xBins + xBin; 86 | bins[binIndex].count++; 87 | bins[binIndex].data.push(d); 88 | }); 89 | 90 | // Filter out empty bins 91 | const nonEmptyBins = bins.filter(d => d.count > 0); 92 | 93 | // Color scale based on count - darker = higher intensity 94 | const maxCount = d3.max(nonEmptyBins, d => d.count); 95 | const colorScale = d3.scaleSequential() 96 | .domain([1, maxCount]) 97 | .interpolator(d3.interpolateRgb("#D3DAD9", "#715A5A")); 98 | 99 | // Tooltip 100 | const tooltip = d3.select("body") 101 | .append("div") 102 | .attr("class", "experience-tooltip") 103 | .style("position", "absolute") 104 | .style("background", "#37353E") 105 | .style("color", "#D3DAD9") 106 | .style("padding", "8px 12px") 107 | .style("border-radius", "6px") 108 | .style("border", "1px solid #44444E") 109 | .style("pointer-events", "none") 110 | .style("font-size", "13px") 111 | .style("opacity", 0); 112 | 113 | // Draw heatmap rectangles 114 | svg.selectAll("rect") 115 | .data(nonEmptyBins) 116 | .join("rect") 117 | .attr("x", d => xScale(d.x0)) 118 | .attr("y", d => yScale(d.y1)) 119 | .attr("width", d => xScale(d.x1) - xScale(d.x0)) 120 | .attr("height", d => yScale(d.y0) - yScale(d.y1)) 121 | .attr("fill", d => colorScale(d.count)) 122 | .attr("stroke", "#37353E") 123 | .attr("stroke-width", 0.5) 124 | .on("mouseover", function (event, d) { 125 | const avgSalary = d3.mean(d.data, p => p.salario); 126 | const avgExp = d3.mean(d.data, p => p.experiencia); 127 | 128 | tooltip 129 | .style("opacity", 1) 130 | .html( 131 | `Experiencia: ${d.x0.toFixed(1)} - ${d.x1.toFixed(1)} años
132 | Salario: ${d3.format(",.0f")(d.y0 / 1_000_000)} - ${d3.format(",.0f")(d.y1 / 1_000_000)} M COP
133 | Personas: ${d.count}
134 | Promedio: ${d3.format(",.0f")(avgSalary / 1_000_000)} M COP` 135 | ) 136 | .style("left", `${event.pageX + 10}px`) 137 | .style("top", `${event.pageY - 30}px`); 138 | 139 | d3.select(this) 140 | .attr("stroke-width", 2) 141 | .attr("stroke", "#D3DAD9"); 142 | }) 143 | .on("mouseout", function () { 144 | tooltip.style("opacity", 0); 145 | d3.select(this) 146 | .attr("stroke-width", 0.5) 147 | .attr("stroke", "#37353E"); 148 | }); 149 | 150 | // Axes 151 | svg.append("g") 152 | .attr("transform", `translate(0,${height})`) 153 | .call(d3.axisBottom(xScale).ticks(8)) 154 | .selectAll("text") 155 | .style("fill", "#D3DAD9") 156 | .style("font-size", "12px"); 157 | 158 | svg.append("g") 159 | .call(d3.axisLeft(yScale) 160 | .ticks(8) 161 | .tickFormat(d => d3.format(",.0f")(d / 1_000_000))) 162 | .selectAll("text") 163 | .style("fill", "#D3DAD9") 164 | .style("font-size", "12px"); 165 | 166 | // Style axis lines 167 | svg.selectAll(".domain, .tick line") 168 | .style("stroke", "#44444E"); 169 | 170 | // Axis labels 171 | svg.append("text") 172 | .attr("x", width / 2) 173 | .attr("y", height + 45) 174 | .attr("text-anchor", "middle") 175 | .attr("fill", "#D3DAD9") 176 | .style("font-size", "14px") 177 | .text("Años de experiencia"); 178 | 179 | svg.append("text") 180 | .attr("transform", "rotate(-90)") 181 | .attr("x", -height / 2) 182 | .attr("y", -70) 183 | .attr("text-anchor", "middle") 184 | .attr("fill", "#D3DAD9") 185 | .style("font-size", "14px") 186 | .text("Salario mensual (millones COP)"); 187 | 188 | // Legend 189 | const legendWidth = 15; 190 | const legendHeight = 200; 191 | const legendSteps = 10; 192 | 193 | const legend = svg.append("g") 194 | .attr("transform", `translate(${width + 30}, ${(height - legendHeight) / 2})`); 195 | 196 | // Legend gradient 197 | const defs = svg.append("defs"); 198 | const gradient = defs.append("linearGradient") 199 | .attr("id", "heatmap-gradient") 200 | .attr("x1", "0%") 201 | .attr("x2", "0%") 202 | .attr("y1", "100%") 203 | .attr("y2", "0%"); 204 | 205 | for (let i = 0; i <= legendSteps; i++) { 206 | const t = i / legendSteps; 207 | gradient.append("stop") 208 | .attr("offset", `${t * 100}%`) 209 | .attr("stop-color", colorScale(1 + t * (maxCount - 1))); 210 | } 211 | 212 | legend.append("rect") 213 | .attr("width", legendWidth) 214 | .attr("height", legendHeight) 215 | .style("fill", "url(#heatmap-gradient)") 216 | .style("stroke", "#44444E"); 217 | 218 | // Legend scale 219 | const legendScale = d3.scaleLinear() 220 | .domain([1, maxCount]) 221 | .range([legendHeight, 0]); 222 | 223 | legend.append("g") 224 | .attr("transform", `translate(${legendWidth}, 0)`) 225 | .call(d3.axisRight(legendScale).ticks(5)) 226 | .selectAll("text") 227 | .style("fill", "#D3DAD9") 228 | .style("font-size", "11px"); 229 | 230 | legend.selectAll(".domain, .tick line") 231 | .style("stroke", "#44444E"); 232 | 233 | legend.append("text") 234 | .attr("x", legendWidth + 35) 235 | .attr("y", -10) 236 | .attr("text-anchor", "middle") 237 | .attr("fill", "#D3DAD9") 238 | .style("font-size", "12px") 239 | .text("Personas"); 240 | 241 | }).catch(error => { 242 | console.error('Error loading experience data:', error); 243 | }); 244 | 245 | // Return cleanup function 246 | return cleanup; 247 | }, []); 248 | 249 | return ( 250 |
251 | 252 | Salarios por Experiencia 253 | 254 | 255 | Este mapa de calor muestra la densidad de profesionales en diferentes rangos de experiencia y salario. Las áreas más oscuras representan mayor concentración de personas. 256 | Se observa claramente que la mayoría de salarios altos se concentran entre 5 y 20 años de experiencia, mientras que los profesionales junior (0-5 años) tienden a tener salarios más bajos y consistentes. 257 | Los rangos con mayor densidad están entre 1.5 y 10 millones de pesos mensuales. 258 | 259 |
260 | 261 |
262 | ); 263 | }; 264 | 265 | export default SalaryVsExperience; -------------------------------------------------------------------------------- /license.md: -------------------------------------------------------------------------------- 1 | # Creative Commons Attribution-ShareAlike 4.0 International 2 | 3 | Creative Commons Corporation (“Creative Commons”) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an “as-is” basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible. 4 | 5 | **Using Creative Commons Public Licenses** 6 | 7 | Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses. 8 | 9 | - **Considerations for licensors:** Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright. [More considerations for licensors](http://wiki.creativecommons.org/Considerations_for_licensors_and_licensees#Considerations_for_licensors). 10 | 11 | - **Considerations for the public:** By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor’s permission is not necessary for any reason–for example, because of any applicable exception or limitation to copyright–then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable. [More considerations for the public](http://wiki.creativecommons.org/Considerations_for_licensors_and_licensees#Considerations_for_licensees). 12 | 13 | ## Creative Commons Attribution-ShareAlike 4.0 International Public License 14 | 15 | By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution-ShareAlike 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions. 16 | 17 | ### Section 1 – Definitions. 18 | 19 | a. **Adapted Material** means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image. 20 | 21 | b. **Adapter's License** means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License. 22 | 23 | c. **BY-SA Compatible License** means a license listed at [creativecommons.org/compatiblelicenses](http://creativecommons.org/compatiblelicenses), approved by Creative Commons as essentially the equivalent of this Public License. 24 | 25 | d. **Copyright and Similar Rights** means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights. 26 | 27 | e. **Effective Technological Measures** means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements. 28 | 29 | f. **Exceptions and Limitations** means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material. 30 | 31 | g. **License Elements** means the license attributes listed in the name of a Creative Commons Public License. The License Elements of this Public License are Attribution and ShareAlike. 32 | 33 | h. **Licensed Material** means the artistic or literary work, database, or other material to which the Licensor applied this Public License. 34 | 35 | i. **Licensed Rights** means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license. 36 | 37 | j. **Licensor** means the individual(s) or entity(ies) granting rights under this Public License. 38 | 39 | k. **Share** means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them. 40 | 41 | l. **Sui Generis Database Rights** means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world. 42 | 43 | m. **You** means the individual or entity exercising the Licensed Rights under this Public License. **Your** has a corresponding meaning. 44 | 45 | ### Section 2 – Scope. 46 | 47 | a. **_License grant._** 48 | 49 | 1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to: 50 | 51 | A. reproduce and Share the Licensed Material, in whole or in part; and 52 | 53 | B. produce, reproduce, and Share Adapted Material. 54 | 55 | 2. **Exceptions and Limitations.** For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions. 56 | 57 | 3. **Term.** The term of this Public License is specified in Section 6(a). 58 | 59 | 4. **Media and formats; technical modifications allowed.** The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material. 60 | 61 | 5. **Downstream recipients.** 62 | 63 | A. **Offer from the Licensor – Licensed Material.** Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License. 64 | 65 | B. **Additional offer from the Licensor – Adapted Material.** Every recipient of Adapted Material from You automatically receives an offer from the Licensor to exercise the Licensed Rights in the Adapted Material under the conditions of the Adapter’s License You apply. 66 | 67 | C. **No downstream restrictions.** You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material. 68 | 69 | 6. **No endorsement.** Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i). 70 | 71 | b. **_Other rights._** 72 | 73 | 1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise. 74 | 75 | 2. Patent and trademark rights are not licensed under this Public License. 76 | 77 | 3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties. 78 | 79 | ### Section 3 – License Conditions. 80 | 81 | Your exercise of the Licensed Rights is expressly made subject to the following conditions. 82 | 83 | a. **_Attribution._** 84 | 85 | 1. If You Share the Licensed Material (including in modified form), You must: 86 | 87 | A. retain the following if it is supplied by the Licensor with the Licensed Material: 88 | 89 | i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated); 90 | 91 | ii. a copyright notice; 92 | 93 | iii. a notice that refers to this Public License; 94 | 95 | iv. a notice that refers to the disclaimer of warranties; 96 | 97 | v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable; 98 | 99 | B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and 100 | 101 | C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License. 102 | 103 | 2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information. 104 | 105 | 3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable. 106 | 107 | b. **_ShareAlike._** 108 | 109 | In addition to the conditions in Section 3(a), if You Share Adapted Material You produce, the following conditions also apply. 110 | 111 | 1. The Adapter’s License You apply must be a Creative Commons license with the same License Elements, this version or later, or a BY-SA Compatible License. 112 | 113 | 2. You must include the text of, or the URI or hyperlink to, the Adapter's License You apply. You may satisfy this condition in any reasonable manner based on the medium, means, and context in which You Share Adapted Material. 114 | 115 | 3. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, Adapted Material that restrict exercise of the rights granted under the Adapter's License You apply. 116 | 117 | ### Section 4 – Sui Generis Database Rights. 118 | 119 | Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material: 120 | 121 | a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database; 122 | 123 | b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material, including for purposes of Section 3(b); and 124 | 125 | c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database. 126 | 127 | For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights. 128 | 129 | ### Section 5 – Disclaimer of Warranties and Limitation of Liability. 130 | 131 | a. **Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You.** 132 | 133 | b. **To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You.** 134 | 135 | c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability. 136 | 137 | ### Section 6 – Term and Termination. 138 | 139 | a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically. 140 | 141 | b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates: 142 | 143 | 1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or 144 | 145 | 2. upon express reinstatement by the Licensor. 146 | 147 | For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License. 148 | 149 | c. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License. 150 | 151 | d. Sections 1, 5, 6, 7, and 8 survive termination of this Public License. 152 | 153 | ### Section 7 – Other Terms and Conditions. 154 | 155 | a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed. 156 | 157 | b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License. 158 | 159 | ### Section 8 – Interpretation. 160 | 161 | a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License. 162 | 163 | b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions. 164 | 165 | c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor. 166 | 167 | d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority. 168 | 169 | > Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” The text of the Creative Commons public licenses is dedicated to the public domain under the [CC0 Public Domain Dedication](https://creativecommons.org/publicdomain/zero/1.0/legalcode). Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at [creativecommons.org/policies](http://creativecommons.org/policies), Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses. 170 | > 171 | > Creative Commons may be contacted at creativecommons.org. 172 | --------------------------------------------------------------------------------