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: [5.69,8.24,10.05,19.46,24.40,18.69,65.23,69.23,65.71,65.59,14.10,5.03,4.98,4.97,4.97,4.97,10.96,20.01,66.92,81.48,79.40,79.75,76.68,58.06,52.72] }, { name: "€/MWh", chartType: "bar", values: [5.69,8.24,10.05,19.46,24.40,18.69,65.23,69.23,65.71,65.59,14.10,5.03,4.98,4.97,4.97,4.97,10.96,20.01,66.92,81.48,79.40,79.75,76.68,58.06,52.72] } ], 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 } });