diff --git a/webapp/frontend/src/app/modules/detail/detail.component.ts b/webapp/frontend/src/app/modules/detail/detail.component.ts index ce21642..e87b75f 100644 --- a/webapp/frontend/src/app/modules/detail/detail.component.ts +++ b/webapp/frontend/src/app/modules/detail/detail.component.ts @@ -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() } ] }