new frappe.Chart("#chart", { data: { labels: ["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"], datasets: [ { values: [98.40,98.39,69.20,19.57,22.58,28.64,31.20,27.63,29.02,29.00,28.14,24.06,25.27,26.03,30.13,25.55,28.70,28.81,28.56,27.28] } ], 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: ["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","00:45"], datasets: [ { values: [98.40,98.39,69.20,19.57,22.58,28.64,31.20,27.63,29.02,29.00,28.14,24.06,25.27,26.03,30.13,25.55,28.70,28.81,28.56,27.28,24.43,25.73,27.62,24.06,24.49,25.01,28.07,24.98,26.94,27.99,29.89,25.28,27.39,30.08,35.00,29.99,30.90,50.83,98.39,73.14,118.40,169.42,166.69,123.90,136.99,147.63,176.75,151.18,154.90,147.53,166.70,144.21,143.01,140.18,132.60,149.89,141.15,131.49,116.58,124.22,98.40,81.66,67.94,72.62,70.12,67.37,65.88,48.09,48.05,48.00,34.99] } ], 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-03-08 06","2026-03-08 07","2026-03-08 08","2026-03-08 09","2026-03-08 10","2026-03-08 11","2026-03-08 12","2026-03-08 13","2026-03-08 14","2026-03-08 15","2026-03-08 16","2026-03-08 17","2026-03-08 18","2026-03-08 19","2026-03-08 20","2026-03-08 21","2026-03-08 22","2026-03-08 23","2026-03-09 00"], datasets: [ { values: [83.59,91.10,25.50,28.45,26.37,27.91,26.27,25.41,27.45,29.44,52.53,131.91,146.32,155.08,140.00,134.78,93.06,69.00,44.78] } ], 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" } });