new frappe.Chart("#chart", { data: { labels: ["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"], datasets: [ { values: [17.13,34.02,25.88,20.74,15.89,26.02,24.32,19.79,15.32,23.70,20.44,18.42,14.88,22.46,19.07,16.39,12.20,17.34,17.37,15.86] } ], 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: ["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","20:45","21:00","21:15","21:30"], datasets: [ { values: [17.13,34.02,25.88,20.74,15.89,26.02,24.32,19.79,15.32,23.70,20.44,18.42,14.88,22.46,19.07,16.39,12.20,17.34,17.37,15.86,14.73,17.66,17.51,18.04,18.19,17.14,18.03,18.83,19.64,20.01,18.04,11.69,12.48,10.66,10.32,9.29,8.56,10.39,9.54,8.38,7.73,8.68,8.06,7.50,6.99,7.00,6.41,5.30,5.20,4.99,4.27,3.99,3.98,3.98,3.98,3.63,4.11,3.63,3.98,3.52,4.00,4.29,4.99,7.04,8.39,6.87,9.04,13.22,17.67,11.91,14.16,20.05,34.84,25.74,24.99,20.05,19.96,20.40,19.38,16.06] } ], 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-09-05 01","2026-09-05 02","2026-09-05 03","2026-09-05 04","2026-09-05 05","2026-09-05 06","2026-09-05 07","2026-09-05 08","2026-09-05 09","2026-09-05 10","2026-09-05 11","2026-09-05 12","2026-09-05 13","2026-09-05 14","2026-09-05 15","2026-09-05 16","2026-09-05 17","2026-09-05 18","2026-09-05 19","2026-09-05 20","2026-09-05 21","2026-09-05 22","2026-09-05 23","2026-09-06 00"], datasets: [ { values: [21.65,24.13,21.36,19.36,17.53,16.33,17.85,18.41,15.56,9.71,9.01,7.81,5.98,4.31,3.93,3.78,6.18,11.70,20.24,22.69,17.51,14.87,11.97,8.75] } ], 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" } });