The ui.gadgets.charts.lines vocab implements the line gadget. See the Implementation details.