attrHistory needs to be reversed, so the newest data is on the right
fixes #339
This commit is contained in:
@@ -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()
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user