Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ```dataviewjs
- const rawData = await dv.query('TABLE length(rows.file.name) FROM "" FLATTEN dateformat(file.ctime, "yyyy-MM-dd") AS D GROUP BY D SORT D');
- const rows = rawData.value.values;
- const chartData = {
- type: 'line',
- data: {
- labels: rows.map(x => x[0]),
- datasets: [{
- label: 'Notes per day',
- data: rows.map(x => x[1]),
- radius: 1,
- pointStyle: 'cross',
- backgroundColor: ['#bf6ee0'],
- borderWidth: 1,
- borderColor: ['#bf6ee0'],
- fill: false,
- stepped: true,
- }],
- },
- }
- window.renderChart(chartData, this.container);
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement