diff --git a/src/main/webapp/scripts/dialogs/scatterplot-dialog.js b/src/main/webapp/scripts/dialogs/scatterplot-dialog.js index f1f4ff7b2..31760c5bc 100644 --- a/src/main/webapp/scripts/dialogs/scatterplot-dialog.js +++ b/src/main/webapp/scripts/dialogs/scatterplot-dialog.js @@ -1,7 +1,8 @@ -function ScatterplotDialog() { +function ScatterplotDialog(column) { + this._column = column; this._plot_method = "lin"; - this._plot_size = 20; - this._dot_size = 0.1; + this._plot_size = Math.max(Math.floor("500" / theProject.columnModel.columns.length / 5) * 5,"20"); + this._dot_size = 0.3; this._createDialog(); } @@ -10,7 +11,7 @@ ScatterplotDialog.prototype._createDialog = function() { var frame = DialogSystem.createDialog(); frame.width("1100px"); - var header = $('
').addClass("dialog-header").text('Scatterplot Matrix').appendTo(frame); + var header = $('
').addClass("dialog-header").text('Scatterplot Matrix' + ((typeof this._column == "undefined") ? "" : " (focusing on '" + this._column + "')")).appendTo(frame); var body = $('
').addClass("dialog-body").appendTo(frame); var footer = $( '