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: ["11","12","13","14","15","16","17","18","19","20","21","22","23","00"], datasets: [ { values: [2.55,0.10,-1.46,-1.69,-2.18,-0.88,1.66,29.10,50.86,100.22,110.93,128.97,85.44,72.61] } ], 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" } });