fail to generate excel when name is specified in trendline

Issue #1305 new
Terry Chan created an issue

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 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.

Comments (3)

  1. CharlieC

    Thanks for the report. Can you supply a complete example? Better still would be a PR with relevant tests and an example of using trendlines in a chart in the docs. :-)

  2. Log in to comment