Skip to content

Commit 8e3cada

Browse files
committed
v1.18.1 fixed colorbar bug and improved size
1 parent 466bec0 commit 8e3cada

File tree

7 files changed

+21
-18
lines changed

7 files changed

+21
-18
lines changed

clustergrammer.js

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clustergrammer.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clustergrammer.node.js

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clustergrammer.node.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "clustergrammer",
3-
"version": "v1.18.0",
3+
"version": "v1.18.1",
44
"description": "This is a clustergram implemented in D3.js. I started from the example http://bost.ocks.org/mike/miserables/ and added the following features",
55
"main": "clustergrammer.node.js",
66
"scripts": {

src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var awesomplete = require('awesomplete');
2727
require('!style!css!./d3.slider/d3.slider.css');
2828
require('!style!css!awesomplete/awesomplete.css');
2929

30-
/* clustergrammer v1.18.0
30+
/* clustergrammer v1.18.1
3131
* Nicolas Fernandez, Ma'ayan Lab, Icahn School of Medicine at Mount Sinai
3232
* (c) 2017
3333
*/

src/sidebar/make_colorbar.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module.exports = function make_colorbar(cgm){
1111

1212

1313
var colorbar_width = params.sidebar.width - 20;
14-
var colorbar_height = 15;
14+
var colorbar_height = 13;
1515
var svg_height = 3*colorbar_height;
1616
var svg_width = 1.2*colorbar_width;
1717
var low_left_margin = 10 ;
@@ -111,6 +111,7 @@ module.exports = function make_colorbar(cgm){
111111
///////////////
112112

113113
var max_abs_val = Math.abs( Math.round(params.matrix.max_link * 10) /10);
114+
var font_size = 13;
114115

115116
main_svg
116117
.append('text')
@@ -125,7 +126,7 @@ module.exports = function make_colorbar(cgm){
125126
})
126127
.style('font-family', '"Helvetica Neue", Helvetica, Arial, sans-serif')
127128
.style('font-weight', 300)
128-
.style('font-size', 15)
129+
.style('font-size', font_size)
129130
.attr('transform', 'translate('+low_left_margin+','+top_margin+')')
130131
.attr('text-anchor', 'start');
131132

@@ -137,13 +138,13 @@ module.exports = function make_colorbar(cgm){
137138
if (special_case === 'all_negative'){
138139
inst_string = 0;
139140
} else {
140-
inst_string= '-' + max_abs_val.toLocaleString();
141+
inst_string= max_abs_val.toLocaleString();
141142
}
142143
return inst_string;
143144
})
144145
.style('font-family', '"Helvetica Neue", Helvetica, Arial, sans-serif')
145146
.style('font-weight', 300)
146-
.style('font-size', 15)
147+
.style('font-size', font_size)
147148
.attr('transform', 'translate('+high_left_margin+','+top_margin+')')
148149
.attr('text-anchor', 'end');
149150
};

0 commit comments

Comments
 (0)