From f8448f55544f0bfe846f9df184ac2f5e38877dbb Mon Sep 17 00:00:00 2001 From: elena Date: Mon, 21 Sep 2015 09:19:02 +0200 Subject: [PATCH] tooltip --- js/app/views/VisuUI.js | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/js/app/views/VisuUI.js b/js/app/views/VisuUI.js index fdc38bf..5e08b83 100644 --- a/js/app/views/VisuUI.js +++ b/js/app/views/VisuUI.js @@ -42,7 +42,8 @@ Ext.define('amdaUI.VisuUI', { this.object.set('name',this.object.get('name')); } // load object into view - this.loadObject(); + if (this.object.get('id') != '') + this.loadObject(); }, reset : function() { @@ -139,8 +140,7 @@ Ext.define('amdaUI.VisuUI', { } AmdaAction.initForChart(this.object.get('id'), this.object.get('objName'), this.fromPlugin, 'catalog', onAfterInit); - - + }, @@ -216,7 +216,7 @@ Ext.define('amdaUI.VisuUI', { type: 'scatter', showMarkers: false, // markerConfig: { -// radius: 5, + // radius: 5, // size: 5 // }, // // axes: ['left', 'bottom'], @@ -227,8 +227,20 @@ Ext.define('amdaUI.VisuUI', { // renderer: function(value, label, storeItem, item, i, display, animate, index) { // return storeItem.param3; // } - } - }], + }, + tips: { +// trackMouse: true, + width: 10, + height: 20, + hideDelay: 100, //200 ms +// mouseOffset: [10,10], //[15,18] + renderer: function(storeItem, item) { + this.setTitle(storeItem.index); + } + } + } + ], + listeners: { // select: { // fn: function(me, selection) { -- libgit2 0.21.2