/** * @class Ext.chart.sprite.Label * @extend Ext.draw.sprite.Text * @alternateClassName Ext.chart.label.Label * * Sprite used to represent labels in series. * * Important: the actual default values are determined by the theme used. * Please see the `label` config of the {@link Ext.chart.theme.Base#axis}. */ /** * @cfg {Object} fx * Animation configuration. */ /** * @cfg {String} [field=null] * The store record field used by the label sprite. * * Note: the label sprite is typically used indirectly (by a Ext.chart.MarkerHolder * series sprite, via a Ext.chart.Markers sprite, where the latter is passed to the * label renderer), so to get to the label field one has to do: * * renderer: function (text, sprite, config, data, index) { * var field = sprite.getTemplate().getField(); * } * * To get the actual label sprite instance one can use: * * sprite.get(index) * * @accessor */ /** * @cfg {Boolean|Object} [calloutLine=true] * * True to draw a line between the label and the chart with the default settings, * or an Object that defines the 'color', 'width' and 'length' properties of the line. * This config is only applicable when the label is displayed outside the chart. * @accessor */ /** * @cfg {Number} [hideLessThan=20] * Hides labels for pie slices with segment length less than this value (in pixels). * @accessor */