mirror of
https://github.com/zadam/trilium.git
synced 2025-12-23 08:39:57 +01:00
support passing functions to the backend as parameters
This commit is contained in:
@@ -117,16 +117,11 @@
|
||||
return data;
|
||||
});
|
||||
|
||||
const colors = data.map(row => row.comment ? 'darkred' : 'red');
|
||||
|
||||
const datasets = [{
|
||||
label: "Weight",
|
||||
backgroundColor: 'red',
|
||||
borderColor: 'red',
|
||||
data: data.map(row => row.weight),
|
||||
// this is to emphasize points with color
|
||||
pointBackgroundColor: colors,
|
||||
pointBorderColor: colors,
|
||||
fill: false
|
||||
}];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user