new frappe.Chart("#chart", { data: { labels: ["23:00","23:15","23:30","23:45","00:00","00:15","00:30","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"], datasets: [ { values: [114.46,97.75,88.06,57.43,85.07,74.50,51.60,36.92,31.31,26.03,21.07,20.78,27.11,24.70,20.78,20.77,20.78,20.77,20.77,20.77] } ], 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: ["23:00","23:15","23:30","23:45","00:00","00:15","00:30","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"], datasets: [ { values: [114.46,97.75,88.06,57.43,85.07,74.50,51.60,36.92,31.31,26.03,21.07,20.78,27.11,24.70,20.78,20.77,20.78,20.77,20.77,20.77,20.78,20.78,20.78,20.78,20.46,20.90,21.08,36.91,33.06,49.92,54.41,85.09,66.49,66.50,83.66,117.27,231.51,234.20,284.21,250.09,210.50,192.59,189.99,88.69,171.10,107.03,86.02,135.88,97.02,188.85,171.09,98.19,88.69,88.69,88.69,89.94,88.70,92.89,97.84,100.59,210.50,234.20,290.00,483.05,171.10,85.05,88.65,101.47,103.90,103.89,123.94,141.27,111.90,124.95,142.34,152.53,135.02,149.08,144.92,138.12] } ], 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: ["2025-10-27 22","2025-10-27 23","2025-10-28 00","2025-10-28 01","2025-10-28 02","2025-10-28 03","2025-10-28 04","2025-10-28 05","2025-10-28 06","2025-10-28 07","2025-10-28 08","2025-10-28 09","2025-10-28 10","2025-10-28 11","2025-10-28 12","2025-10-28 13","2025-10-28 14","2025-10-28 15","2025-10-28 16","2025-10-28 17","2025-10-28 18","2025-10-28 19","2025-10-28 20","2025-10-28 21","2025-10-28 22","2025-10-28 23","2025-10-29 00"], datasets: [ { values: [92.61,89.43,62.02,24.80,23.34,20.77,20.78,24.84,55.62,83.48,250.00,170.44,125.01,138.79,89.00,95.01,304.44,111.57,118.25,132.93,141.79,121.93,114.14,97.24,81.44,81.33,69.04] } ], 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" } });