1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/0e7b5c5cfcd9/ Changeset: 0e7b5c5cfcd9 User: guerler Date: 2014-03-08 08:43:54 Summary: Charts: Validate column datatypes Affected #: 2 files diff -r 5459de70fd325cbde3937034880266e36d98e97d -r 0e7b5c5cfcd9bb3fc13c9087d661597c064ba546 config/plugins/visualizations/charts/static/library/datasets.js --- a/config/plugins/visualizations/charts/static/library/datasets.js +++ b/config/plugins/visualizations/charts/static/library/datasets.js @@ -127,7 +127,7 @@ result[j].values.push(value); } } - + // callback callback(result); }); diff -r 5459de70fd325cbde3937034880266e36d98e97d -r 0e7b5c5cfcd9bb3fc13c9087d661597c064ba546 config/plugins/visualizations/charts/static/views/group.js --- a/config/plugins/visualizations/charts/static/views/group.js +++ b/config/plugins/visualizations/charts/static/views/group.js @@ -111,17 +111,21 @@ // add select field to list list[id] = select; } - + // get dataset this.app.datasets.request({id : dataset_id}, function(dataset) { // configure columns self.columns = []; var meta = dataset.metadata_column_types; - for (var key in meta){ - self.columns.push({ - 'label' : key + ' [' + meta[key] + ']', - 'value' : key - }); + for (var key in meta) { + // check type + if(meta[key] == 'int' || meta[key] == 'float') { + // add to selection + self.columns.push({ + 'label' : 'Column: ' + (parseInt(key) + 1) + ' [' + meta[key] + ']', + 'value' : key + }); + } } // update select fields Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.