Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sgratzl committed Dec 8, 2018
1 parent d55c37b commit 732a5e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/renderer/CategoricalCellRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {ICategoricalStatistics, round} from '../internal/math';
import {ICategoricalColumn, IDataRow, IOrderedGroup, SetColumn} from '../model';
import CategoricalColumn from '../model/CategoricalColumn';
import Column from '../model/Column';
import {isCategoryIncluded, isCategoricalColumn, isCategoricalLikeColumn, ICategoricalLikeColumn} from '../model/ICategoricalColumn';
import {isCategoricalColumn, isCategoricalLikeColumn, ICategoricalLikeColumn} from '../model/ICategoricalColumn';
import OrdinalColumn from '../model/OrdinalColumn';
import {CANVAS_HEIGHT, cssClass, FILTERED_OPACITY} from '../styles';
import {filterMissingNumberMarkup, updateFilterMissingNumberMarkup} from '../ui/missing';
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/CategoricalStackedDistributionlCellRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function stackedBar(col: ISetColumn) {
const label = cats[i].label;
d.style.flexGrow = `${round(total === 0 ? 0 : count, 2)}`;
d.title = `${label}: ${count}`;
};
}
return;
}

Expand All @@ -145,7 +145,7 @@ function stackedBar(col: ISetColumn) {
d.title = `${label}: ${count} of ${gCount}`;
const relY = 100 - round(count * 100 / gCount, 2);
d.style.background = relY === 0 ? cats[i].color : (relY === 100 ? cats[i].selected : `linear-gradient(${cats[i].selected} ${relY}%, ${cats[i].color} ${relY}%, ${cats[i].color} 100%)`);
};
}
}
};
}

0 comments on commit 732a5e7

Please sign in to comment.