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

fixes #339
This commit is contained in:
Jason Kulatunga
2022-08-03 18:23:58 -07:00
parent d201f798fb
commit 2d6f60abaa
@@ -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()
}
]
}