new frappe.Chart("#chart", { data: { labels: ["21","22","23","00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21"], datasets: [ { name: "sees", chartType: "bar", values: [138.01,126.25,0.00,90.19,91.82,91.88,91.00,89.67,88.79,82.96,76.99,71.02,45.80,2.91,-0.03,-0.18,-2.06,-7.41,-6.78,2.99,-2.53,2.83,88.58,93.32,0.00] }, { name: "€/MWh", chartType: "bar", values: [138.01,126.25,99.30,90.19,91.82,91.88,91.00,89.67,88.79,82.96,76.99,71.02,45.80,2.91,-0.03,-0.18,-2.06,-7.41,-6.78,2.99,-2.53,2.83,88.58,93.32,119.09] } ], 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 } });