Commit 45f19b1d3ed7d385e86d6f728df952ee77666f1e
1 parent
76a9606d
Exists in
master
alteração de rotas
Showing
1 changed file
with
0 additions
and
85 deletions
Show diff stats
wscacicneo/static/relatorio.js
... | ... | @@ -156,88 +156,3 @@ Ext.onReady(function(){ |
156 | 156 | }); |
157 | 157 | |
158 | 158 | }); |
159 | - | |
160 | -// **** GRAFICO DE PIZZA **** | |
161 | - | |
162 | -var store = Ext.create('Ext.data.JsonStore', { | |
163 | - fields: ['name', 'data'], | |
164 | - data: [ | |
165 | - { 'name': 'dado1', 'data': 2 }, | |
166 | - { 'name': 'dado2', 'data': 2 }, | |
167 | - { 'name': 'dado3', 'data': 4 }, | |
168 | - { 'name': 'dado4', 'data': 10 } | |
169 | -]}); | |
170 | - | |
171 | -var chart = Ext.create('Ext.chart.Chart', { | |
172 | - layout: 'fit', | |
173 | - width: 500, | |
174 | - height: 350, | |
175 | - animate: true, | |
176 | - store: store, | |
177 | - theme: 'Base:gradients', | |
178 | - shadow: true, | |
179 | - | |
180 | - axes:[ | |
181 | - | |
182 | - ] | |
183 | - | |
184 | - legend: { | |
185 | - position: 'right' | |
186 | - }, | |
187 | - series: [{ | |
188 | - type: 'pie', | |
189 | - angleField: 'data', | |
190 | - showInLegend: true, | |
191 | - tips: { | |
192 | - trackMouse: true, | |
193 | - width: 140, | |
194 | - height: 28, | |
195 | - renderer: function(storeItem, item) { | |
196 | - // calculate and display percentage on hover | |
197 | - var total = 0; | |
198 | - store.each(function(rec) { | |
199 | - total += rec.get('data'); | |
200 | - }); | |
201 | - this.setTitle(storeItem.get('name') + ': ' + Math.round(storeItem.get('data') / total * 100) + '%'); | |
202 | - } | |
203 | - }, | |
204 | - highlight: { | |
205 | - segment: { | |
206 | - margin: 20 | |
207 | - } | |
208 | - }, | |
209 | - label: { | |
210 | - field: 'name', | |
211 | - display: 'rotate', | |
212 | - contrast: true, | |
213 | - font: '18px Arial' | |
214 | - } | |
215 | - }] | |
216 | -}); | |
217 | - | |
218 | -widget = Ext.create('Ext.panel.Panel', { | |
219 | - layout: 'fit', | |
220 | - title: 'Widgets', | |
221 | - width: '75%', | |
222 | - frame: true, | |
223 | - draggable: true, | |
224 | - collapsible: true, | |
225 | - border : true, | |
226 | - style: { | |
227 | - "text-align": 'center', | |
228 | - margin: '-65px auto 15px auto' | |
229 | - }, | |
230 | - items: chart | |
231 | -}); | |
232 | - | |
233 | -Ext.onReady(function(){ | |
234 | - | |
235 | - | |
236 | - Ext.create('Ext.Container', { | |
237 | - padding: '15px', | |
238 | - items: [widget], | |
239 | - renderTo: 'widgets' | |
240 | - }); | |
241 | - | |
242 | -}); | |
243 | - | ... | ... |