obsidian-charts
obsidian-charts copied to clipboard
Is there a way in radar chart to change increment intervals?
Is there a way to make this radar chart show increments as 0 to 5 integers ( 0, 1, 2, 3, 4, 5)?
code for this chart:
```dataviewjs
const src = dv.current()
dv.paragraph(`\`\`\`chart
type: radar
labels: [${src.ratingLabels}]
series:
- title: src.title
data: [${src.ratings}]
legend: false
fill: true
beginAtZero: true
rMax: 5
\`\`\``)
```
Have you found a solution for this?
No, I couldn't.
It's possible to change this, but in my experience only when using window.renderChart(...)
. See the ChartJS' linear axis page for more options.
```dataviewjs
const chartData = {
type: 'radar',
data: { ... },
options: {
scales: {
r: {
ticks: {
stepSize: 1
}
}
}
}
}
window.renderChart(chartData, this.container);