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: ["17","18","19","20","21","22","23","00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17"], datasets: [ { values: [8.73,29.54,164.75,79.64,66.42,69.05,68.22,29.03,24.48,21.52,20.02,17.87,14.24,17.72,25.28,42.86,10.49,8.23,8.22,4.48,3.50,4.96,20.79,89.63,102.93] } ], 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" } });