Drawing a rounded line diagram

Hi,

I would like to design a widget with a graph (line diagram) like that one in ActiFace: https://apps.garmin.com/de-DE/apps/7ef071c3-4a14-4eb3-aca9-e3a531262711

Saying this, calculating coordinates for a couple of points is easy and I am wondering how Petr did that rounding in his app. The native elements in connect IQ are circle, line and polygon, rectangle, arc and ellipse. In my opinion Petr has done that with arcs. Maybe the deviation is calculated of the line in each single point on both sides of the graph and a certain arc is drawn then. Nevertheless, the crossing from the arcs to the lines looks brilliant and I am wondering how he did this. Any hints?