new frappe.Chart("#chart", { data: { labels: ["14","15","16","17","18","19","20","21","22","23","00","01","02","03","04","05","06","07","08","09","10","11","12","13","14"], datasets: [ { name: "sees", chartType: "bar", values: [44.34,110.00,47.06,92.19,0.00,0.00,0.00,0.00,189.99,0.00,0.00,0.00,107.84,102.37,99.83,105.10,104.35,98.00,85.92,55.56,20.20,13.01,11.76,10.01,9.46] }, { name: "€/MWh", chartType: "bar", values: [44.34,110.00,47.06,92.19,274.99,189.99,301.92,301.96,189.99,301.92,237.25,175.84,107.84,102.37,99.83,105.10,104.35,98.00,85.92,55.56,20.20,13.01,11.76,10.01,9.46] } ], 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 } });