new frappe.Chart("#chart", { data: { labels: ["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"], datasets: [ { values: [4.95,4.78,4.42,4.50,3.92,4.38,4.08,4.27,4.78,3.93,3.92,3.91,3.92,3.77,3.77,3.77,3.92,3.76,3.78,3.92] } ], 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: ["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: [4.95,4.78,4.42,4.50,3.92,4.38,4.08,4.27,4.78,3.93,3.92,3.91,3.92,3.77,3.77,3.77,3.92,3.76,3.78,3.92,4.93,4.71,4.98,6.26,7.12,7.98,9.99,10.00,19.99,9.99,16.75,28.00,46.50,16.12,28.00,31.42,40.39,25.00,34.05,35.10,35.03,31.05,30.90,33.79,33.60,32.76,34.58,34.65,29.99,39.16,37.95,28.67,24.40,32.57,24.99,20.05,10.44] } ], 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-06-17 10","2026-06-17 11","2026-06-17 12","2026-06-17 13","2026-06-17 14","2026-06-17 15","2026-06-17 16","2026-06-17 17","2026-06-17 18","2026-06-17 19","2026-06-17 20","2026-06-17 21","2026-06-17 22","2026-06-17 23","2026-06-18 00"], datasets: [ { values: [4.98,4.41,4.38,3.92,3.81,4.10,5.77,11.99,25.31,28.98,32.30,32.34,33.00,32.55,22.01] } ], 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" } });