Skip to content

Commit

Permalink
G3-540 fixing issue with histogram display
Browse files Browse the repository at this point in the history
  • Loading branch information
francastell committed Dec 19, 2024
1 parent a64450b commit 38aded7
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions src/templates/viewThreshold_new.html
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,9 @@ <h2 class="panel-title"><strong>Set GeneSet Threshold</strong></h2>
Plotly.restyle(plotElement, {
selectedpoints: [indices],
selected: {
marker: {
color: '#ff0000'
}
marker: {
color: '#ff0000'
}
}
});
//update gene count display
Expand All @@ -264,12 +264,8 @@ <h2 class="panel-title"><strong>Set GeneSet Threshold</strong></h2>
var x_bin_size = 0.5;
if (v_max - v_min < 100) { x_bin_size = 0.1 };
if (v_max - v_min < 1) { x_bin_size = 0.01 };
var x_bin_conf = {};
if (threshold_type === 4 || threshold_type === 5) {
x_bin_conf = {size: x_bin_size}
} else {
x_bin_conf = {start:0, size: x_bin_size}
}
var x_bin_conf = {size: x_bin_size};


//buttons to remove from plotly bar
var btns2rm = [ 'toggleSpikelines', 'lasso2d', 'hoverClosestCartesian', 'hoverCompareCartesian']
Expand All @@ -296,7 +292,8 @@ <h2 class="panel-title"><strong>Set GeneSet Threshold</strong></h2>
xaxis: {
title: {
text: "Threshold Range"
}
},
range: [v_min, v_max]
},
yaxis: {
title: {
Expand Down

0 comments on commit 38aded7

Please sign in to comment.