new frappe.Chart("#chart", { data: { labels: ["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"], datasets: [ { values: [38.21,37.60,37.02,35.18,38.99,36.50,40.92,45.10,35.79,39.40,43.64,45.65,33.97,36.83,46.62,51.08,35.03,47.03,51.08,75.68] } ], 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: ["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","21:45"], datasets: [ { values: [38.21,37.60,37.02,35.18,38.99,36.50,40.92,45.10,35.79,39.40,43.64,45.65,33.97,36.83,46.62,51.08,35.03,47.03,51.08,75.68,60.01,74.18,102.60,113.67,113.03,115.35,117.06,100.76,132.36,117.00,97.74,71.29,108.32,79.81,59.58,23.08,14.71,13.14,11.97,9.26,7.08,6.02,9.25,8.56,9.26,9.25,8.91,11.15,9.99,11.89,12.22,12.51,11.97,12.01,12.02,10.63,25.00,35.04,45.03,55.13,35.03,53.38,75.76,94.95,67.08,88.81,127.63,141.29,122.01,128.36,142.11,165.71,152.97,172.63,178.50,180.42,194.46,162.53,132.36,80.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-04-08 01","2026-04-08 02","2026-04-08 03","2026-04-08 04","2026-04-08 05","2026-04-08 06","2026-04-08 07","2026-04-08 08","2026-04-08 09","2026-04-08 10","2026-04-08 11","2026-04-08 12","2026-04-08 13","2026-04-08 14","2026-04-08 15","2026-04-08 16","2026-04-08 17","2026-04-08 18","2026-04-08 19","2026-04-08 20","2026-04-08 21","2026-04-08 22","2026-04-08 23","2026-04-09 00"], datasets: [ { values: [34.22,37.00,40.38,41.12,42.13,52.21,87.62,111.55,104.60,67.70,12.27,7.73,9.64,11.65,11.66,40.05,64.78,106.20,139.55,171.13,142.34,98.81,59.84,25.02] } ], 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" } });