Closed BigbadHort closed 2 years ago
thanks for the wonderful plugin and the ability to work with dataviewjs
This code works fine for me
const pages = dv.pages('"05π§Π‘ΠΈΡΠ°Π΄ΠΌΠΈΠ½/ΠΌΠΎΠΉ_ΠΊΠΎΠΌΠΏ_ΠΏΠ°ΡΠΊ"').where(b => b.file.name != "ΠΌΠΎΠΉ_ΠΊΠΎΠΌΠΏ_ΠΏΠ°ΡΠΊ.md").sort(k => k.rating, 'desc'); const labels = pages.map(b=>b["title"]); const data = pages.map(b=>b["rating"]); const chartData = { type: 'line', data: { labels: labels.values, datasets: [{ label: 'Π Π΅ΠΉΡΠΈΠ½Π³', data: data.values, backgroundColor: [ 'rgba(255, 99, 132, 0.2)' ], borderColor: [ 'rgba(255, 99, 132, 1)' ], borderWidth: 1 }] } } window.renderChart(chartData, this.container);
but I can't figure out how to use series?
Could you give an example of working with cap of series?
The answer!!! You can close it
thanks for the wonderful plugin and the ability to work with dataviewjs
This code works fine for me
but I can't figure out how to use series?
Could you give an example of working with cap of series?