new frappe.Chart("#chart", { data: { labels: ["01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","00"], datasets: [ { name: "sees", chartType: "bar", values: [89.44,90.05,84.73,84.93,91.53,93.07,91.91,0.00,85.40,85.39,20.01,84.77,26.23,19.15,4.60,50.10,3.08,66.42,92.35,120.68,138.94,126.55,102.21,85.40] }, { name: "€/MWh", chartType: "bar", values: [89.44,90.05,84.73,84.93,91.53,93.07,91.91,180.03,85.40,85.39,20.01,84.77,26.23,19.15,4.60,50.10,3.08,66.42,92.35,120.68,138.94,126.55,102.21,85.40] } ], 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 } });