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: ["22","23","00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22"], datasets: [ { values: [116.45,107.98,93.82,28.97,27.70,26.91,25.96,28.85,92.22,250.01,397.98,208.78,172.89,100.07,45.06,50.00,50.00,65.51,130.10,126.10,156.33,200.30,239.99,149.99,143.40] } ], 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" } });