Ext.chart.Legend.View
Hierarchy
Ext.DataViewExt.chart.Legend.ViewFiles
A DataView specialized for displaying the legend items for a chart. This class is only used internally by Ext.chart.Legend and should not need to be instantiated directly.
Properties
Defaults to: ['<ul class="' + Ext.baseCSSPrefix + 'legend-items">', '<tpl for=".">', '<li class="' + Ext.baseCSSPrefix + 'legend-item <tpl if="disabled">' + Ext.baseCSSPrefix + 'legend-inactive' + '</tpl>">', '<span class="' + Ext.baseCSSPrefix + 'legend-item-marker" style="background-color:{markerColor};"></span>{label}', '</li>', '</tpl>', '</ul>']
Methods
Create the internal data store for the view
Handle double-taps on legend items; splits items that are a result of item combination
Parameters
- item : Object
- i : Object
Handle single taps on legend items; toggles the corresponding series items on and off.
Parameters
- item : Object
- i : Object
Create and return the JSON data for the legend's internal data store
Handles dropping one legend item on another.
Parameters
- droppable : Object
- draggable : Object
Fired when a legend item is tap-held. Initializes a draggable for the held item.
Parameters
- e : Object
- target : Object
Update the legend component to match its current vertical/horizontal orientation
Reset the legend view back to its initial state before any user interactions.
Updates the droppable objects for each list item. Should be called whenever the list view is re-rendered.
Updates the internal store to match the current legend info supplied by all the series.