Repository navigation
Commit 18ba765
committed
api: break line charts at data gaps instead of interpolating
The history line charts filtered out null points, so Chart.js saw
contiguous data and drew a straight line across gaps (e.g. when the
collector had no data, or after a MariaDB outage). Keep null points in
the data array and set spanGaps:false so the line breaks at gaps
instead of connecting across them.1 parent 23fd215 commit 18ba765
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
710 | 710 | | |
711 | 711 | | |
712 | 712 | | |
713 | | - | |
| 713 | + | |
| 714 | + | |
714 | 715 | | |
715 | 716 | | |
716 | 717 | | |
| |||
731 | 732 | | |
732 | 733 | | |
733 | 734 | | |
734 | | - | |
| 735 | + | |
| 736 | + | |
735 | 737 | | |
736 | 738 | | |
737 | 739 | | |
| |||
0 commit comments