Commit f8448f55544f0bfe846f9df184ac2f5e38877dbb

Authored by elena
1 parent 363cacdd

tooltip

Showing 1 changed file with 18 additions and 6 deletions   Show diff stats
js/app/views/VisuUI.js
... ... @@ -42,7 +42,8 @@ Ext.define('amdaUI.VisuUI', {
42 42 this.object.set('name',this.object.get('name'));
43 43 }
44 44 // load object into view
45   - this.loadObject();
  45 + if (this.object.get('id') != '')
  46 + this.loadObject();
46 47 },
47 48  
48 49 reset : function() {
... ... @@ -139,8 +140,7 @@ Ext.define('amdaUI.VisuUI', {
139 140 }
140 141  
141 142 AmdaAction.initForChart(this.object.get('id'), this.object.get('objName'), this.fromPlugin, 'catalog', onAfterInit);
142   -
143   -
  143 +
144 144 },
145 145  
146 146  
... ... @@ -216,7 +216,7 @@ Ext.define('amdaUI.VisuUI', {
216 216 type: 'scatter',
217 217 showMarkers: false,
218 218 // markerConfig: {
219   -// radius: 5,
  219 + // radius: 5,
220 220 // size: 5
221 221 // },
222 222 // // axes: ['left', 'bottom'],
... ... @@ -227,8 +227,20 @@ Ext.define('amdaUI.VisuUI', {
227 227 // renderer: function(value, label, storeItem, item, i, display, animate, index) {
228 228 // return storeItem.param3;
229 229 // }
230   - }
231   - }],
  230 + },
  231 + tips: {
  232 +// trackMouse: true,
  233 + width: 10,
  234 + height: 20,
  235 + hideDelay: 100, //200 ms
  236 +// mouseOffset: [10,10], //[15,18]
  237 + renderer: function(storeItem, item) {
  238 + this.setTitle(storeItem.index);
  239 + }
  240 + }
  241 + }
  242 + ],
  243 +
232 244 listeners: {
233 245 // select: {
234 246 // fn: function(me, selection) {
... ...