Private
Public Access
1
0

first working version compare

This commit is contained in:
2024-03-17 10:13:35 +01:00
parent 0da6237e57
commit abb181eeef
3 changed files with 4 additions and 2 deletions

View File

@@ -1 +0,0 @@
sander@rowsandall-2.231246:1710428505

View File

@@ -1314,7 +1314,6 @@ def getsmallrowdata_db(columns, ids=[], doclean=True, workstrokesonly=True, comp
workstrokesonly=workstrokesonly)
data.dropna(axis=1, how='all', inplace=True)
data.dropna(axis=0, how='any', inplace=True)
print(data)
return data
except TypeError:
pass

View File

@@ -5313,6 +5313,10 @@ def interactive_multiple_compare_chart(ids, xparam, yparam, plottype='line',
if datadf.empty: # pragma: no cover
return ['', '<p>No non-zero data in selection</p>', '', 'No non-zero data in selection']
if (xparam == 'time'):
datadf[xparam] = datadf[xparam] - datadf[xparam].iloc[0]
data_dict = datadf.to_dict("records")