1 Ext.data.JsonP.Ext_chart_Legend({
3 "name": "Ext.chart.Legend",
4 "doc": "<p>Defines a legend for a chart's series.\nThe 'chart' member must be set prior to rendering.\nThe legend class displays a list of legend items each of them related with a\nseries being rendered. In order to render the legend item of the proper series\nthe series configuration object must have <code>showInSeries</code> set to true.</p>\n\n<p>The legend configuration object accepts a <code>position</code> as parameter.\nThe <code>position</code> parameter can be <code>left</code>, <code>right</code>\n<code>top</code> or <code>bottom</code>. For example:</p>\n\n<pre><code>legend: {\n position: 'right'\n},\n</code></pre>\n\n<p>Full example:</p>\n\n<pre><code> var store = Ext.create('Ext.data.JsonStore', {\n fields: ['name', 'data1', 'data2', 'data3', 'data4', 'data5'],\n data: [\n {'name':'metric one', 'data1':10, 'data2':12, 'data3':14, 'data4':8, 'data5':13},\n {'name':'metric two', 'data1':7, 'data2':8, 'data3':16, 'data4':10, 'data5':3},\n {'name':'metric three', 'data1':5, 'data2':2, 'data3':14, 'data4':12, 'data5':7},\n {'name':'metric four', 'data1':2, 'data2':14, 'data3':6, 'data4':1, 'data5':23},\n {'name':'metric five', 'data1':27, 'data2':38, 'data3':36, 'data4':13, 'data5':33} \n ]\n });\n \n Ext.create('Ext.chart.Chart', {\n renderTo: Ext.getBody(),\n width: 500,\n height: 300,\n animate: true,\n store: store,\n shadow: true,\n theme: 'Category1',\n legend: {\n position: 'top'\n },\n axes: [{\n type: 'Numeric',\n grid: true,\n position: 'left',\n fields: ['data1', 'data2', 'data3', 'data4', 'data5'],\n title: 'Sample Values',\n grid: {\n odd: {\n opacity: 1,\n fill: '#ddd',\n stroke: '#bbb',\n 'stroke-width': 1\n }\n },\n minimum: 0,\n adjustMinimumByMajorUnit: 0\n }, {\n type: 'Category',\n position: 'bottom',\n fields: ['name'],\n title: 'Sample Metrics',\n grid: true,\n label: {\n rotate: {\n degrees: 315\n }\n }\n }],\n series: [{\n type: 'area',\n highlight: false,\n axis: 'left',\n xField: 'name',\n yField: ['data1', 'data2', 'data3', 'data4', 'data5'],\n style: {\n opacity: 0.93\n }\n }]\n }); \n </code></pre>\n\n",
9 "alternateClassNames": [
21 "member": "Ext.chart.Legend",
23 "doc": "<p>Fill style for the legend box</p>\n",
25 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/chart/Legend.js",
27 "html_filename": "Legend.html",
28 "href": "Legend.html#Ext-chart-Legend-cfg-boxFill"
33 "member": "Ext.chart.Legend",
35 "doc": "<p>Style of the stroke for the legend box</p>\n",
37 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/chart/Legend.js",
39 "html_filename": "Legend.html",
40 "href": "Legend.html#Ext-chart-Legend-cfg-boxStroke"
44 "name": "boxStrokeWidth",
45 "member": "Ext.chart.Legend",
47 "doc": "<p>Width of the stroke for the legend box</p>\n",
49 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/chart/Legend.js",
51 "html_filename": "Legend.html",
52 "href": "Legend.html#Ext-chart-Legend-cfg-boxStrokeWidth"
57 "member": "Ext.chart.Legend",
59 "doc": "<p>Sets the z-index for the legend. Defaults to 100.</p>\n",
61 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/chart/Legend.js",
63 "html_filename": "Legend.html",
64 "href": "Legend.html#Ext-chart-Legend-cfg-boxZIndex"
68 "name": "itemSpacing",
69 "member": "Ext.chart.Legend",
71 "doc": "<p>Amount of space between legend items</p>\n",
73 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/chart/Legend.js",
75 "html_filename": "Legend.html",
76 "href": "Legend.html#Ext-chart-Legend-cfg-itemSpacing"
81 "member": "Ext.chart.Legend",
83 "doc": "<p>Font to be used for the legend labels, eg '12px Helvetica'</p>\n",
85 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/chart/Legend.js",
87 "html_filename": "Legend.html",
88 "href": "Legend.html#Ext-chart-Legend-cfg-labelFont"
93 "member": "Ext.chart.Legend",
95 "doc": "<p>Amount of padding between the legend box's border and its items</p>\n",
97 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/chart/Legend.js",
99 "html_filename": "Legend.html",
100 "href": "Legend.html#Ext-chart-Legend-cfg-padding"
105 "member": "Ext.chart.Legend",
107 "doc": "<p>The position of the legend in relation to the chart. One of: \"top\",\n\"bottom\", \"left\", \"right\", or \"float\". If set to \"float\", then the legend\nbox will be positioned at the point denoted by the x and y parameters.</p>\n",
109 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/chart/Legend.js",
111 "html_filename": "Legend.html",
112 "href": "Legend.html#Ext-chart-Legend-cfg-position",
113 "shortDoc": "The position of the legend in relation to the chart. One of: \"top\",\n\"bottom\", \"left\", \"right\", or \"float\". If set to ..."
118 "member": "Ext.chart.Legend",
120 "doc": "<p>Whether or not the legend should be displayed.</p>\n",
122 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/chart/Legend.js",
124 "html_filename": "Legend.html",
125 "href": "Legend.html#Ext-chart-Legend-cfg-visible"
130 "member": "Ext.chart.Legend",
132 "doc": "<p>X-position of the legend box. Used directly if position is set to \"float\", otherwise\nit will be calculated dynamically.</p>\n",
134 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/chart/Legend.js",
136 "html_filename": "Legend.html",
137 "href": "Legend.html#Ext-chart-Legend-cfg-x"
142 "member": "Ext.chart.Legend",
144 "doc": "<p>Y-position of the legend box. Used directly if position is set to \"float\", otherwise\nit will be calculated dynamically.</p>\n",
146 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/chart/Legend.js",
148 "html_filename": "Legend.html",
149 "href": "Legend.html#Ext-chart-Legend-cfg-y"
156 "member": "Ext.chart.Legend",
167 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/chart/Legend.js",
169 "html_filename": "Legend.html",
170 "href": "Legend.html#Ext-chart-Legend-method-constructor",
176 "tagname": "property",
177 "name": "isVertical",
178 "member": "Ext.chart.Legend",
180 "doc": "<p>Whether the legend box is oriented vertically, i.e. if it is on the left or right side or floating.</p>\n",
183 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/chart/Legend.js",
185 "html_filename": "Legend.html",
186 "href": "Legend.html#Ext-chart-Legend-property-isVertical"
192 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/chart/Legend.js",
194 "html_filename": "Legend.html",
195 "href": "Legend.html#Ext-chart-Legend",