new frappe.Chart("#chart", { data: { labels: ["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"], datasets: [ { values: [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] } ], 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: ["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","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"], datasets: [ { values: [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,34.24,35.20,35.21,32.00,32.68,31.23,31.15,31.21,30.91,30.25,28.70,28.70,28.10,30.53,33.96,34.38,26.06,31.74,37.04,44.44,31.99,35.21,40.42,52.48,28.44,40.33,46.52,58.87,49.66,53.05,57.30,55.00,62.67,58.37,47.45,46.30,57.51,49.36] } ], 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 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","2026-06-18 01","2026-06-18 02","2026-06-18 03","2026-06-18 04","2026-06-18 05","2026-06-18 06","2026-06-18 07","2026-06-18 08","2026-06-18 09","2026-06-18 10","2026-06-18 11","2026-06-18 12","2026-06-18 13","2026-06-18 14","2026-06-18 15","2026-06-18 16","2026-06-18 17","2026-06-18 18","2026-06-18 19","2026-06-18 20","2026-06-18 21","2026-06-18 22","2026-06-18 23","2026-06-19 00"], datasets: [ { values: [3.81,4.10,5.77,11.99,25.31,28.98,32.30,32.34,33.00,32.55,22.01,34.16,31.57,29.64,31.74,34.82,40.03,43.54,53.75,53.70,48.54,45.00,42.82,28.91,22.94,26.60,40.66,50.14,59.50,59.03,149.45,223.94,185.74,147.25,122.67] } ], 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" } });