Skip to content

Commit

Permalink
attrHistory needs to be reversed, so the newest data is on the right
Browse files Browse the repository at this point in the history
fixes #339
  • Loading branch information
AnalogJ committed Aug 4, 2022
1 parent d201f79 commit 2d6f60a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webapp/frontend/src/app/modules/detail/detail.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,9 @@ export class DetailComponent implements OnInit, AfterViewInit, OnDestroy {
attributes[attrId].chartData = [
{
name: 'chart-line-sparkline',
data: attrHistory
// attrHistory needs to be reversed, so the newest data is on the right
// fixes #339
data: attrHistory.reverse()
}
]
}
Expand Down

0 comments on commit 2d6f60a

Please sign in to comment.