[CDF-287] - As a user, I want to be able to define a chart made up of arbitrary, compatible, plots.

* Fix legend API returning stale values right after execute.

@pamval please review.