attrHistory needs to be reversed, so the newest data is on the right

fixes #339
pull/352/head
Jason Kulatunga 2 years ago
parent d201f798fb
commit 2d6f60abaa

@ -351,7 +351,9 @@ export class DetailComponent implements OnInit, AfterViewInit, OnDestroy {
attributes[attrId].chartData = [ attributes[attrId].chartData = [
{ {
name: 'chart-line-sparkline', name: 'chart-line-sparkline',
data: attrHistory // attrHistory needs to be reversed, so the newest data is on the right
// fixes #339
data: attrHistory.reverse()
} }
] ]
} }

Loading…
Cancel
Save