Skip to content

Commit 45f28c9

Browse files
authored
Update heftlog.app.js
Corrected a mistake in the graph where dates were shown in wrong sides.
1 parent bbfc4f2 commit 45f28c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/heftlog.app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ function loadGraph(L, height){
160160
.drawString(top, R.w / 2, gap / 2 + offset)
161161
.drawString(bottom, R.w / 2, R.h - (gap / 2) + offset)
162162
.setFont('6x8').setFontAlign(0, 0, 90)
163-
.drawString(formatDt(L[0].date, '/'), 4, R.h / 2 + offset)
164-
.drawString(formatDt(L[L.length-1].date, '/'), R.w - 4, R.h / 2 + offset);
163+
.drawString(formatDt(L[L.length-1].date, '/'), 4, R.h / 2 + offset)
164+
.drawString(formatDt(L[0].date, '/'), R.w - 4, R.h / 2 + offset);
165165

166166
// Enables returning with the back widget or button press
167167
Bangle.setUI({

0 commit comments

Comments
 (0)