new frappe.Chart("#chart", { // or DOM element //"23", "00", "01", "02", "03", "04", "05", "06" //136.03, 80.07, 90.14, 85.15, 78.9, 92.96, 100.37, 145.35 data: { labels: ["20","21","22","23","00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20"], datasets: [ { values: [239.99,149.99,143.40,115.44,110.02,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] } ], yMarkers: [{ label: "universaalteenuse hind 154", value: 154, options: { labelPos: "left" } }], yRegions: [ { label: "50", start: 0, end: 50, options: { labelPos: "right" } } ] }, title: "Elektrihinnad", type: "line", height: 300, colors: ["blue"], lineOptions: { dotSize: 8 }, tooltipOptions: { formatTooltipX: (d) => "kell " + d +".00-"+ (+d+1) +".00", formatTooltipY: (d) => d + " €/MWh" } });