diff --git a/demo-only.html b/demo-only.html index ebd547b..a7858b8 100755 --- a/demo-only.html +++ b/demo-only.html @@ -21,7 +21,7 @@

This page is for demonstration only

- +

@@ -90,7 +90,7 @@

This page is for demonstration only

document.getElementById('npoints').innerHTML = 'Number of points: '+data.length.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",") let slider = document.getElementById('point-size-slider') slider.oninput = $.debounce(1000, function() { - plotOptions['pointSize'] = this.value + plotOptions['pointSize'] = this.value * 0.5 canvasPlot.drawPlot(canvasPlot.data, plotGeometry, plotOptions) }) }) diff --git a/index.html b/index.html index cb5f336..f5ae84b 100755 --- a/index.html +++ b/index.html @@ -20,7 +20,7 @@

- +

diff --git a/ngchm.js b/ngchm.js index e066d5f..5fbf16f 100644 --- a/ngchm.js +++ b/ngchm.js @@ -121,7 +121,7 @@ VAN.addMessageListener ('plot', function plotMessageHandler (vanodi) { canvasPlot.selectedPointIds = vanodi.data.axes[0].selectedLabels ? vanodi.data.axes[0].selectedLabels : [] canvasPlot.drawPlot(canvasPlot.data, ScatterPlot.plotGeometry, ScatterPlot.plotOptions, ScatterPlot.colorMap); slider.oninput = $.debounce(1000, function() { - canvasPlot.plotOptions.pointSize = this.value; + canvasPlot.plotOptions.pointSize = this.value * 0.5; canvasPlot.drawPlot(canvasPlot.data, canvasPlot.plotGeometry, canvasPlot.plotOptions, ScatterPlot.colorMap) }) var reset = document.getElementById('reset-button');