new frappe.Chart("#chart", { data: { labels: ["18","19","20","21","22","23","00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18"], datasets: [ { name: "sees", chartType: "bar", values: [29.54,0.00,79.64,66.42,69.05,0.00,0.00,0.00,0.00,0.00,0.00,14.24,0.00,25.28,42.86,10.49,8.23,8.22,4.48,3.50,4.96,20.79,89.63,102.93,0.00] }, { name: "€/MWh", chartType: "bar", values: [29.54,164.75,79.64,66.42,69.05,68.22,29.03,24.48,21.52,20.02,17.87,14.24,17.72,25.28,42.86,10.49,8.23,8.22,4.48,3.50,4.96,20.79,89.63,102.93,224.72] } ], yRegions: [ { label: "50", start: 0, end: 50, options: { labelPos: "right" } } ] }, title: "Boileri plaan", type: "axis-mixed", height: 300, colors: ["green","blue"], lineOptions: { dotSize: 8 }, tooltipOptions: { formatTooltipX: (h) => "tund: " + h, formatTooltipY: (s) => s } });