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: ["18","19","20","21","22","23","00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18"], datasets: [ { values: [32.00,86.90,96.65,113.17,108.08,86.00,85.73,26.92,25.74,25.16,24.95,27.89,74.02,104.52,130.26,100.46,85.67,71.92,64.27,64.17,60.87,59.91,68.19,81.92,91.12] } ], 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" } });