Skip to content

Commit df97818

Browse files
committed
enhance: condition to draw the right-most sample
Signed-off-by: leo <longshuang@msn.cn>
1 parent 5b5c10a commit df97818

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Views/Chart.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public override void Render(DrawingContext context)
125125
_ => WEEKDAYS[(int)time.DayOfWeek]
126126
};
127127

128-
if (x <= w && series.TotalSamples.TryGetValue(time, out var total) && total > 0)
128+
if (x - step <= w && series.TotalSamples.TryGetValue(time, out var total) && total > 0)
129129
{
130130
if (hasUserSamples)
131131
{

0 commit comments

Comments
 (0)