When the name is specified for a trendline in a chart
tl = Trendline(name="Response-time trend", trendlineType='poly', order=5)
the script crashes and throws the following error: : 'str' object has no attribute 'to_tree'.
I believe the issue is caused by line 58 in trendline.py. When I change it from:
name = String(allow_none=True)
name = NestedValue(expected_type=str, allow_none=True)
label in the legend is updated and everything seems to be working fine.