| | |
| | const allManufacturers = [ |
| | "Astronergy", "Atersa", "Benq Solair", "Brasil Solair", "BYD", "Canadian Solar", |
| | "China Sunergy", "Conergy", "Dya Energia Solar", "ET Solar", "EOPLLY", "Exe Solar", |
| | "First Solar", "GCL", "Globo Brasil", "Hanwha Solar", "Hyundai", "JA Solar", |
| | "Jinko Solar", "Jolywood", "Kyocera", "LDK", "Leapton Solar", "Longi Solar", |
| | "Phono Solar", "Rec Solar", "ReneSola", "Risen Energy", "Sharp", "Soliker", |
| | "SunEdison", "Sungen International Limited", "Sunpower", "Suntech", "Trinasolar", |
| | "WAAREE", "Yingli Solar", "Znshine Solar", "Outros" |
| | ]; |
| |
|
| | const moduleData = [ |
| | { id: 1, fabricante: "Longi Solar", modelo: "Hi-MO 6 (LR5-72HPH)", potencia: 550, eficiencia: 21.5, area: 2.56, garantia: 25 }, |
| | { id: 2, fabricante: "Jinko Solar", modelo: "Tiger Neo (JKM575N-72HL4)", potencia: 575, eficiencia: 22.26, area: 2.58, garantia: 30 }, |
| | { id: 3, fabricante: "Trinasolar", modelo: "Vertex S (DE09.08)", potencia: 415, eficiencia: 21.8, area: 1.90, garantia: 25 }, |
| | { id: 4, fabricante: "Canadian Solar", modelo: "HiKu6 (CS6R-410MS)", potencia: 410, eficiencia: 21.0, area: 1.95, garantia: 25 }, |
| | { id: 5, fabricante: "BYD", modelo: "BYD 545W (545M10-66H)", potencia: 545, eficiencia: 21.1, area: 2.58, garantia: 25 }, |
| | { id: 6, fabricante: "Risen Energy", modelo: "Titan (RSM130-8-450M)", potencia: 450, eficiencia: 20.8, area: 2.16, garantia: 25 }, |
| | { id: 7, fabricante: "JA Solar", modelo: "DeepBlue 3.0 (JAM72S30)", potencia: 540, eficiencia: 20.9, area: 2.58, garantia: 25 }, |
| | { id: 8, fabricante: "Astronergy", modelo: "Astro 5 (CHSM54M-HC)", potencia: 410, eficiencia: 21.0, area: 1.95, garantia: 25 }, |
| | { id: 9, fabricante: "Hanwha Solar", modelo: "Q.PEAK DUO (G9+ 460)", potencia: 460, eficiencia: 20.6, area: 2.23, garantia: 25 }, |
| | { id: 10, fabricante: "Globo Brasil", modelo: "GB-M60-330W", potencia: 330, eficiencia: 19.8, area: 1.67, garantia: 20 } |
| | ]; |
| |
|
| | |
| | function configureCharts() { |
| | const gridColor = '#333'; |
| | const textColor = '#9ca3af'; |
| | const titleColor = '#eaeaea'; |
| | |
| | Chart.defaults.color = textColor; |
| | Chart.defaults.borderColor = gridColor; |
| | Chart.defaults.font.family = "'Inter', sans-serif"; |
| | |
| | Chart.defaults.scale.title.color = titleColor; |
| | Chart.defaults.scale.title.font = { weight: '500' }; |
| | Chart.defaults.plugins.legend.labels.color = textColor; |
| | Chart.defaults.plugins.tooltip.backgroundColor = '#222'; |
| | Chart.defaults.plugins.tooltip.titleColor = titleColor; |
| | Chart.defaults.plugins.tooltip.bodyColor = textColor; |
| | } |
| |
|
| | |
| | document.addEventListener('DOMContentLoaded', () => { |
| | configureCharts(); |
| | |
| | }); |