Skip to content

Commit b8f3046

Browse files
authored
Draw edges of sparkline chart area (#8286)
1 parent ce6193b commit b8f3046

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pkg/web_app/lib/src/widget/weekly_sparkline/widget.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ void drawChart(Element svg, HTMLDivElement toolTip, HTMLDivElement chartSubText,
122122
area.setAttribute(
123123
'd', '$line L${drawingWidth + padding} $height L$padding $height Z');
124124

125-
chart.append(sparkline);
126125
chart.append(area);
126+
chart.append(sparkline);
127127

128128
svg.append(chart);
129129

pkg/web_css/lib/src/_detail_page.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,10 @@ $detail-tabs-tablet-width: calc(100% - 240px);
278278
}
279279

280280
.weekly-sparkline-area {
281+
stroke: var(--pub-weekly-chart-main-color);
281282
fill: var(--pub-weekly-chart-main-color);
282283
opacity: 0.3;
283-
stroke-width: 0;
284+
stroke-width: 2;
284285
}
285286

286287
@media (min-width: $device-desktop-min-width) {

0 commit comments

Comments
 (0)