Skip to content

Commit f569642

Browse files
set data summary tooltip text fill to #333 (#82)
1 parent f7710ec commit f569642

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/renderer/dataSummaryView.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ function smallStack(categoryData, col) {
321321
Plot.text([0,0], {
322322
x: 0,
323323
dy: 13,
324-
text:d => d3.format(',.0f')(categoryData.length) + `${label}`
324+
text: d => d3.format(',.0f')(categoryData.length) + `${label}`
325325
})
326326
],
327327
width: 205,
@@ -431,7 +431,8 @@ function addTooltips(chart, hoverStyles = {fill: BLUE, opacity: 0.5 }) {
431431
.join('g')
432432
.attr('class', 'hover')
433433
.style('pointer-events', NONE)
434-
.style('text-anchor', 'middle');
434+
.style('text-anchor', 'middle')
435+
.style('fill', '#333');
435436

436437
// add a unique id to the chart for styling
437438
const id = idGenerator();

0 commit comments

Comments
 (0)