Sorting graph data

This commit is contained in:
Magnus Persson
2022-02-14 21:47:59 +01:00
parent 1428bec3da
commit b43874d151
2 changed files with 8 additions and 4 deletions

View File

@ -274,6 +274,10 @@
function populateChartForm(a, g) {
if( a != 0)
chartDataForm.push( { x: parseFloat(a), y: parseFloat(g) });
chartDataForm.sort(function (a, b) {
return a.x - b.x;
});
}
function populateChartCalc(a, g) {