[#143334497] Fix bug: Cannot create graph with legend through Plugin API
[#143334497] Fix bug: Cannot create graph with legend through Plugin API

Fixed with Bill's help.

concord-consortium/codap,concord-consortium/codap,concord-consortium/codap,concord-consortium/codap,concord-consortium/codap