new frappe.Chart("#chart", { data: { labels: ["00:45","01:00","01:15","01:30","01:45","02:00","02:15","02:30","02:45","03:00","03:15","03:30","03:45","04:00","04:15","04:30","04:45","05:00","05:15","05:30"], datasets: [ { values: [199.60,181.80,176.98,175.01,173.38,166.33,169.29,169.30,175.01,175.01,178.45,175.00,172.93,172.94,175.00,164.00,168.31,150.01,158.99,175.01] } ], yRegions: [ { label: "50", start: 0, end: 50, options: { labelPos: "right" } } ] }, title: "Elektri hind lähitunnid 15 minuti kaupa", type: "line", height: 300, colors: ["blue"], lineOptions: { dotSize: 5 }, tooltipOptions: { formatTooltipX: (d) => "kell " + d + "-"+add15Minutes(d), formatTooltipY: (d) => d + " €/MWh" } }); new frappe.Chart("#chart2", { data: { labels: ["00:45","01:00","01:15","01:30","01:45","02:00","02:15","02:30","02:45","03:00","03:15","03:30","03:45","04:00","04:15","04:30","04:45","05:00","05:15","05:30","05:45","06:00","06:15","06:30","06:45","07:00","07:15","07:30","07:45","08:00","08:15","08:30","08:45","09:00","09:15","09:30","09:45","10:00","10:15","10:30","10:45","11:00","11:15","11:30","11:45","12:00","12:15","12:30","12:45","13:00","13:15","13:30","13:45","14:00","14:15","14:30","14:45","15:00","15:15","15:30","15:45","16:00","16:15","16:30","16:45","17:00","17:15","17:30","17:45","18:00","18:15","18:30","18:45","19:00","19:15","19:30","19:45","20:00","20:15","20:30"], datasets: [ { values: [199.60,181.80,176.98,175.01,173.38,166.33,169.29,169.30,175.01,175.01,178.45,175.00,172.93,172.94,175.00,164.00,168.31,150.01,158.99,175.01,178.25,167.73,175.00,172.87,179.03,139.02,150.01,158.01,200.01,175.00,183.68,178.13,191.77,175.01,209.27,230.00,283.60,243.73,248.99,273.56,259.45,177.37,184.24,188.24,185.51,173.59,182.21,175.01,243.24,255.00,243.00,257.00,266.33,136.61,139.02,139.01,139.02,166.40,191.07,226.31,175.01,200.00,276.89,175.01,169.29,249.00,248.99,234.73,183.69,149.99,150.00,139.01,132.50,268.79,234.66,211.81,211.81,211.80,175.01,175.00] } ], yRegions: [ { label: "50", start: 0, end: 50, options: { labelPos: "right" } } ] }, title: "Elektri hind 15 minuti kaupa rohkem punkte", type: "line", height: 300, colors: ["blue"], lineOptions: { dotSize: 5 }, tooltipOptions: { formatTooltipX: (d) => "kell " + d + "-"+add15Minutes(d), formatTooltipY: (d) => d + " €/MWh" } }); new frappe.Chart("#chart3", { data: { labels: ["2026-12-05 00","2026-12-05 01","2026-12-05 02","2026-12-05 03","2026-12-05 04","2026-12-05 05","2026-12-05 06","2026-12-05 07","2026-12-05 08","2026-12-05 09","2026-12-05 10","2026-12-05 11","2026-12-05 12","2026-12-05 13","2026-12-05 14","2026-12-05 15","2026-12-05 16","2026-12-05 17","2026-12-05 18","2026-12-05 19","2026-12-05 20","2026-12-05 21","2026-12-05 22","2026-12-05 23","2026-12-06 00"], datasets: [ { values: [229.86,176.79,169.98,175.35,170.06,165.57,173.66,161.76,182.15,224.47,256.43,183.84,193.51,255.33,138.42,189.70,205.30,229.10,142.88,231.77,182.78,192.03,140.29,111.23,111.73] } ], yRegions: [ { label: "50", start: 0, end: 50, options: { labelPos: "right" } } ] }, title: "Elektri keskmine tunni hind", type: "line", height: 300, colors: ["blue"], lineOptions: { dotSize: 5 }, tooltipOptions: { formatTooltipX: (d) => "kell " + d, formatTooltipY: (d) => d + " €/MWh" } });