b0edcec43a680887f447440764d2c6479b5f8c1b hiram Tue Jan 26 09:05:19 2021 -0800 change mu to ~ refs #21980 diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js index 2ca6301..e979d4a 100644 --- src/hg/js/hgTracks.js +++ src/hg/js/hgTracks.js @@ -4643,31 +4643,31 @@ // LEFTADD. var graphOffset = Math.max(0, clientX - tdLeft - 3); if (hgTracks.revCmplDisp) { graphOffset = Math.max(0, rightSide - clientX); } var windowUp = false; // see if window is supposed to become visible var foundIdx = -1; if (mouseOver.items[trackName]) { foundIdx = mouseOver.findRange(graphOffset, mouseOver.items[trackName]); } // can show 'no data' when not found var mouseOverValue = mouseOver.noDataString; if (foundIdx > -1) { // value to display if (mouseOver.items[trackName][foundIdx].c > 1) { - mouseOverValue = " μ " + mouseOver.items[trackName][foundIdx].v + " "; + mouseOverValue = " ~ " + mouseOver.items[trackName][foundIdx].v + " "; } else { mouseOverValue = " " + mouseOver.items[trackName][foundIdx].v + " "; } } $('#mouseOverText').html(mouseOverValue); var msgWidth = mouseOver.maximumWidth[trackName]; $('#mouseOverText').width(msgWidth); var msgHeight = Math.ceil($('#mouseOverText').height()); var lineHeight = Math.max(0, tdHeight - msgHeight); var lineTop = Math.max(0, tdTop + msgHeight); var msgLeft = Math.max(tdLeft, clientX - (msgWidth/2) - 3); // with magic 3 msgLeft = Math.min(msgLeft, rightSide - msgWidth); // right border limit var lineLeft = Math.max(0, clientX - 3); // with magic 3 $('#mouseOverText').css('left',msgLeft + "px"); $('#mouseOverText').css('top',tdTop + "px"); @@ -4780,31 +4780,31 @@ var longestNumber = 0; var hasMean = false; for (var datum in arr[trackName].d) { // .d is the data array if (arr[trackName].d[datum].c > 1) { hasMean = true; } var lenV = arr[trackName].d[datum].v.toString().length; if (lenV > lengthLongestNumberString) { lengthLongestNumberString = lenV; longestNumber = arr[trackName].d[datum].v; } mouseOver.items[trackName].push(arr[trackName].d[datum]); ++itemCount; } mouseOver.tracks[trackName] = itemCount; // != 0 -> indicates valid track var mouseOverValue = ""; if (hasMean) { - mouseOverValue = " μ " + longestNumber + " "; + mouseOverValue = " ~ " + longestNumber + " "; } else { mouseOverValue = " " + longestNumber + " "; } $('#mouseOverText').css('fontSize',mouseOver.browserTextSize); var maximumWidth = mouseOver.getWidthOfText(mouseOverValue); if ( 0 === mouseOver.noDataSize) { // only need to do this once mouseOver.noDataSize = mouseOver.getWidthOfText(mouseOver.noDataString); } if (mouseOver.noDataSize > maximumWidth) { maximumWidth = mouseOver.noDataSize; } mouseOver.maximumWidth[trackName] = maximumWidth; } }, // receiveData: function (arr)