Open ThomJ130 opened 10 months ago
+1, for line charts with data view integration, tension
modifier works, but many others (e.g., stacked
, yMax
) do not.
+1, i just came here to ask if i was doing something wrong, seems it just doesn't work
I solved my issue by looking up the correct syntax in the chart.js documentation, i.e. you need to use the options
object, e.g.
const chartData = {
type: 'bar',
data: {
...
},
options: {
scales: {
y: {
min: 70,
max: 100,
}
}
},
}
I solved my issue by looking up the correct syntax in the chart.js documentation, i.e. you need to use the
options
object, e.g.const chartData = { type: 'bar', data: { ... }, options: { scales: { y: { min: 70, max: 100, } } }, }
You're a hero! I was missing a comma right after the options curly braces when creating horizontal bar graphs. Thanks for pointing it out because I was about to report a new bug.
Describe the bug
When I use the width modifier, it doesn't effect the graph when using a dataviewjs block.
Relevant errors (if available)
No response
Steps to reproduce
Just create a normal graph and use the width modifier, e.g. below
Expected Behavior
By using a less-than-zero width, it should shrink the pie chart.
Additional context
No response
Code
Operating system
Windows