Skip to content

Commit b78c445

Browse files
resolve percent value ref. for tooltip display in table column summary smallStack (#82)
1 parent afced09 commit b78c445

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/renderer/dataSummaryView.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ export function summaryTable(data) {
7676

7777
// compose summary table fragment
7878
const width = 900;
79-
let dataSummaryElement = htl.html`<div
80-
style="display: inline-block; vertical-align: top;">${dataSummaryCard}</div>
79+
let dataSummaryElement = htl.html`<div style="display: inline-block; vertical-align: top;">${dataSummaryCard}</div>
8180
<div style="display: inline-block;">
8281
<table style="vertical-align: middle; display: block; overflow-x: auto; max-width: ${width}px;">
8382
<thead style="z-index: -999;">
@@ -171,7 +170,7 @@ export function summaryCard(data) {
171170
const label = SUMMARY;
172171
const summaryCardElement = htl.html`<div
173172
style="font-family: sans-serif; font-size: 12px; margin-right: 10px;">
174-
<span>${label}</span>
173+
<span style="font-size:1.2em">${label}</span>
175174
<div>${d3.format(',.0f')(columnCount)}</div>
176175
${headerRowPlot}
177176
<span style="display: inline-block">${columnsPlot}</span>
@@ -313,7 +312,7 @@ function smallStack(categoryData, col) {
313312
x: COUNT,
314313
fill: col,
315314
y: 0,
316-
title: d => d[col] + '\n' + percentFormat(d.pct)
315+
title: d => d[col] + '\n' + percentFormat(d.percent)
317316
})
318317
.plot({
319318
color: {

0 commit comments

Comments
 (0)