Estos datos se actualizan de forma diaria en Datamania
Esta ha sido la evolución del precio de la luz durante los últimos 30 días:
Esta ha sido la evolución del precio de la luz (media 7 días) desde junio de 2021:
Si te ha gustado el artículo puedes ver muchos mas datos en Datamania.es
// This function simulates the top 5 of Eurovision 2023 based on some probabilities function simulateEurovision() { // Define an array of countries and their probabilities var countries = [ {name: "Sweden", prob: [86.4, 11.7, 1.9, 0.1, 0]}, {name: "Ukraine", prob: [7.8, 41.1, 34.2, 13.1, 2.8]}, {name: "Finland", prob: [5.5, 37.1, 36.2, 14.4 ,4.8]}, {name: "Norway", prob: [0.5 ,9.1 ,18.6 ,31.9 ,15]}, {name: "Austria", prob: [0 ,0 ,2 ,7 ,13]} // Add more countries if you want ];
// Define an array of ranks var ranks = ["First", "Second", "Third", "Fourth", "Fifth"];
// Define an empty array to store the results var results = [];
// Loop through each rank for (var i = 0; i < ranks.length; i++) { // Generate a random number between 0 and 100 var randomNumber = getRandomNumber(0,100); // Loop through each country for (var j = 0; j < countries.length; j++) { // Check if the random number is within the probability range of the country for that rank if (randomNumber <= countries[j].prob[i]) { // Add the country name and rank to the results array results.push(countries[j].name + ": " + ranks[i]); // Remove the country from the countries array to avoid repetition countries.splice(j,1); // Break out of the loop break; } else { // Subtract the probability of the country from the random number to move to the next range randomNumber -= countries[j].prob[i]; } } } // Get the element with id="result" from the document var resultElement = document.getElementById("result"); // Clear any previous content in that element resultElement.innerHTML = ""; // Loop through each result in the results array for (var k = 0; k < results.length; k++) { // Create a new paragraph element var pElement = document.createElement("p"); // Set its text content to be one result pElement.textContent = results[k]; // Append it to the result element resultElement.appendChild(pElement); } }























































































































































































































































































































































































































































































































































































































