new frappe.Chart("#chart", { data: { labels: ["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"], datasets: [ { values: [103.99,93.73,104.32,110.18,115.34,106.64,114.39,135.70,163.71,150.12,178.85,189.68,203.32,149.15,181.22,221.01,227.81,210.00,212.27,219.13] } ], 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: ["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","22:00","22:15","22:30","22:45","23:00","23:15","23:30","23:45","00:00","00:15","00:30"], datasets: [ { values: [103.99,93.73,104.32,110.18,115.34,106.64,114.39,135.70,163.71,150.12,178.85,189.68,203.32,149.15,181.22,221.01,227.81,210.00,212.27,219.13,204.62,209.24,218.67,200.07,172.30,221.11,198.23,172.31,150.05,200.10,199.09,190.07,190.29,200.15,200.17,200.16,190.03,189.48,189.25,189.23,189.55,180.23,189.19,189.86,190.12,189.74,205.30,200.12,200.14,157.26,164.02,193.42,206.46,175.98,210.01,182.12,174.29,203.12,176.78,168.52,166.18,178.59,160.69,151.15,144.44,146.20,138.78,138.17,115.10,136.99,150.13,131.00,110.68,127.92,118.04,117.72,115.69,115.29,100.16,95.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-01-23 04","2026-01-23 05","2026-01-23 06","2026-01-23 07","2026-01-23 08","2026-01-23 09","2026-01-23 10","2026-01-23 11","2026-01-23 12","2026-01-23 13","2026-01-23 14","2026-01-23 15","2026-01-23 16","2026-01-23 17","2026-01-23 18","2026-01-23 19","2026-01-23 20","2026-01-23 21","2026-01-23 22","2026-01-23 23","2026-01-24 00"], datasets: [ { values: [104.83,105.89,130.11,180.49,194.80,211.51,200.07,185.43,194.89,197.63,189.38,187.35,198.83,180.29,185.60,178.65,158.72,134.56,132.20,119.84,101.12] } ], 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" } });