Skip to content

Commit 90b18ac

Browse files
committed
fix syntax
1 parent c4d7bbd commit 90b18ac

6 files changed

Lines changed: 9 additions & 7 deletions

File tree

public/heatmap_tooltip.css

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
.heatmap-tooltip {
22
position: absolute;
33
width: auto;
4-
height: auto;
5-
padding: 5px;
6-
z-index: 150;
7-
background-color: #d3d3d3;
4+
fadeout(@gray-darker, 7%);
5+
gray-darker: #222222;
86
-webkit-border-radius: 10px;
97
-moz-border-radius: 10px;
108
border-radius: 10px;

public/lib/heatmap_controller.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,12 @@ module.controller('HeatmapController', function ($scope, Private) {
8181

8282
var title = d3.selectAll('text.title');
8383
var value = d[key];
84-
if(key.toUpperCase() === 'ROW')
84+
if (key.toUpperCase() === 'ROW') {
8585
key = params.columnAxis.title || 'ROW';
86-
if(key.toUpperCase() === 'COL')
86+
}
87+
if (key.toUpperCase() === 'COL') {
8788
key = params.rowAxis.title || 'COL';
89+
}
8890
return {
8991
key: key.toUpperCase(),
9092
value: value

public/tooltip_directive.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
var d3 = require("d3");
21
var _ = require("lodash");
32
var module = require('ui/modules').get('heatmap');
43

public/vis/components/axis/axis.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ function axes() {
5858

5959
var text = g.selectAll('text.title')
6060
.data([data]);
61+
6162
text.exit().remove();
6263
text.enter().append('text')
6364
.attr('class', title.class || 'title');

public/vis/components/elements/text.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ function text() {
1515
selection.each(function (data) {
1616
var text = d3.select(this).selectAll('text.' + cssClass)
1717
.data(data);
18+
1819
text.exit().remove();
1920

2021
text.enter().append('text')

public/vis/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ function vis() {
1515
function generator(selection) {
1616
selection.each(function (data) {
1717
events.listeners(listeners);
18+
1819
layout.attr({
1920
type: opts.layout || 'grid',
2021
columns: opts.numOfColumns || 0,

0 commit comments

Comments
 (0)