Initializes and returns a legend view instance with the specified target and configuration object.
The DOM element for the legend view.
Adds a legend for the specified legend type code and options.
Adds a legend item to the view.
Returns the legend for the specified type code if it exists in the view.
Returns whether the view contains a legend for the specified type code.
Removes a registered listener function for the specified event.
Name of the event to remove the listener for.
Handler function to remove so it won't be executed next time the event is triggered.
Registers a listener function to be executed each time an event occurs
Name of the event to listen for. Value can contain multiple event names separated by spaces to trigger the same handler function for each event name.
Handler function to be called when the event occurs
Registers a listener function to be executed the first time an event occurs.
Name of the event to listen for. Value can contain multiple event names separated by spaces to trigger the same handler function for each event name.
Handler function to be called when the event occurs
Removes the legend for the specified type code.
Removes all existing legends from the view.
Removes a legend item from the view.
Updates the legend view for the specified type codes and options. All previously existing legends will be removed.
Sets whether the display data values in Metric units.
Sets the size of the view and existing legends.
Sets the legend using a static image URL. All previously existing legends will be removed.
Sets the width of the view and all existing legends. The previous height value will be used.
Triggers the specified event so that all registered listeners will be executed with the specified parameters.
Event name to trigger
Forces an update of all existing legends.
Generated using TypeDoc
A legend view is responsible for displaying and manging a series of legend elements.