new frappe.Chart("#chart", { data: { labels: ["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"], datasets: [ { values: [50.16,88.31,100.47,99.96,108.99,121.12,130.10,115.34,116.41,114.56,105.41,110.58,104.90,100.44,80.02,87.81,80.37,68.10,60.23,70.39] } ], 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: ["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","00:45"], datasets: [ { values: [50.16,88.31,100.47,99.96,108.99,121.12,130.10,115.34,116.41,114.56,105.41,110.58,104.90,100.44,80.02,87.81,80.37,68.10,60.23,70.39,66.67,64.61,59.96,73.49,60.92,50.80,48.54,51.31,50.20,49.60,49.36,48.67,49.51,48.82,48.59,47.29,44.02,53.35,64.58,51.32,61.20,69.75,87.02,62.57,85.65,96.51,101.11,89.63,91.09,97.69,95.40,95.98,98.24,96.18,95.61,97.52,93.10,89.17,84.64,88.80,50.00,50.00,48.81,54.36,50.01,48.91,46.82,56.09,47.30,44.78,43.00,44.94,49.38,46.44,44.27] } ], 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-02-26 05","2026-02-26 06","2026-02-26 07","2026-02-26 08","2026-02-26 09","2026-02-26 10","2026-02-26 11","2026-02-26 12","2026-02-26 13","2026-02-26 14","2026-02-26 15","2026-02-26 16","2026-02-26 17","2026-02-26 18","2026-02-26 19","2026-02-26 20","2026-02-26 21","2026-02-26 22","2026-02-26 23","2026-02-27 00"], datasets: [ { values: [59.13,71.23,115.04,112.93,98.99,74.13,65.41,58.44,50.12,48.90,52.31,67.32,86.46,93.45,96.50,91.11,59.40,50.03,47.79,46.26] } ], 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" } });