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: [0.00,60.04,60.03,60.04,77.67,0.00,0.00,130.09,80.10,90.09,56.03,25.09,7.09,80.78,88.70,20.03,93.94,83.43,117.37,0.00,190.07,117.57,88.69,10.01] }, { name: "€/MWh", chartType: "bar", values: [127.09,60.04,60.03,60.04,77.67,120.04,189.24,130.09,80.10,90.09,56.03,25.09,7.09,80.78,88.70,20.03,93.94,83.43,117.37,195.42,190.07,117.57,88.69,10.01] } ], yRegions: [ { label: "50", start: 0, end: 50, options: { labelPos: "right" } } ] }, title: "Põrandakütte plaan", type: "axis-mixed", height: 300, colors: ["green","blue"], lineOptions: { dotSize: 8 }, tooltipOptions: { formatTooltipX: (h) => "tund: " + h, formatTooltipY: (s) => s } });