new frappe.Chart("#chart", { data: { labels: ["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"], datasets: [ { values: [100.00,112.62,145.29,150.00,113.16,130.47,152.99,164.89,145.10,158.67,171.91,187.24,151.01,159.24,157.85,159.07,182.17,177.09,157.49,149.99] } ], 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: ["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","01:00","01:15","01:30","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"], datasets: [ { values: [100.00,112.62,145.29,150.00,113.16,130.47,152.99,164.89,145.10,158.67,171.91,187.24,151.01,159.24,157.85,159.07,182.17,177.09,157.49,149.99,147.25,142.96,137.01,129.48,131.54,107.32,106.40,99.99,110.68,101.97,97.43,92.87,104.81,96.24,100.08,91.32,97.35,89.12,88.85,84.53,95.61,88.91,88.31,86.05,88.54,86.32,88.84,87.98,87.42,84.14,86.06,85.59,83.62,84.49,85.14,85.85,83.30,85.08,87.43,90.77,88.86,92.96,97.02,122.88,90.78,100.15,118.83,145.39,129.46,147.25,149.99,150.00,160.83,155.75,156.40,156.39,150.00,149.99,144.59,134.96] } ], 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: ["2025-11-18 14","2025-11-18 15","2025-11-18 16","2025-11-18 17","2025-11-18 18","2025-11-18 19","2025-11-18 20","2025-11-18 21","2025-11-18 22","2025-11-18 23","2025-11-19 00","2025-11-19 01","2025-11-19 02","2025-11-19 03","2025-11-19 04","2025-11-19 05","2025-11-19 06","2025-11-19 07","2025-11-19 08","2025-11-19 09","2025-11-19 10","2025-11-19 11","2025-11-19 12","2025-11-19 13","2025-11-19 14","2025-11-19 15","2025-11-19 16","2025-11-19 17","2025-11-19 18","2025-11-19 19","2025-11-19 20","2025-11-19 21","2025-11-19 22","2025-11-19 23","2025-11-20 00"], datasets: [ { values: [117.85,126.98,140.38,165.73,156.79,166.69,139.18,111.31,100.74,98.11,89.96,89.72,87.92,85.80,84.78,86.65,100.43,113.79,144.18,157.34,144.89,129.96,121.54,120.57,124.15,130.54,167.58,176.04,170.01,146.96,128.62,108.36,102.16,99.17,89.50] } ], 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" } });