Skip to content

Commit

Permalink
Update stackedBar.js
Browse files Browse the repository at this point in the history
  • Loading branch information
nedpeel committed Oct 17, 2024
1 parent c35d4f2 commit c621c64
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gui/UI/public/js/stackedBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ var stack = d3.layout

function transitionPercent() {

yAxis.tickFormat(d3.format("%"));
yAxis.tickFormat(function(d) { return d * 100; });
d3.select("#compareStackedBarYAxisTitle")
.text("Classified " + plotLevelSelectedCompareTooltipPrefix.toUpperCase().toLowerCase() + "s (%)");
// yAxis.tickFormat(d3.format("%"));
stack.offset("zero");
// var stacked = stack(makeData(stackedTaxa, stackedBarInputData));
var stacked = stack(makeData(stackedBarInputData, stackedBarNcbiIDs));
Expand All @@ -106,6 +109,8 @@ function transitionPercent() {
function transitionCount() {

yAxis.tickFormat(d3.format(".2s"));
d3.select("#compareStackedBarYAxisTitle")
.text("Classified " + plotLevelSelectedCompareTooltipPrefix.toUpperCase().toLowerCase() + "s");
stack.offset("zero");
// var stacked = stack(makeData(stackedTaxa, stackedBarInputData));
var stacked = stack(makeData(stackedBarInputData, stackedBarNcbiIDs));
Expand Down

0 comments on commit c621c64

Please sign in to comment.