// Read the application's shared mapping and chart metadata
cy.legend(): LegendRead the application's shared mapping and chart metadata. The returned JSON object is detached; changing it never alters this instance. Automatic domains expose their authored auto stops in the stylesheet and their current numeric stops here. legendchange fires after a committed snapshot changes, before batchend for a batch.
Returns
Legenddetached legend entries in stylesheet definition/property order