generated from obsidianmd/obsidian-sample-plugin
-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: No theme colors when using window.renderChart #103
Comments
Apparently that feature only works for chart code block, so as a workaround I used
|
I hope author can upgrade chartjs to 4.4.0 to support the feature: |
A little late to the party, but I came across the same issue with the axis labels on my radar graphs and found a solution. After a bit of digging into ChartJS, I found that it's possible to specify colours manually. Using your example:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When using window.renderChart, there are no theme colors.
Relevant errors (if available)
No response
Steps to reproduce
Plot a graph using window.renderChart.
Expected Behavior
First graph should use theme colors.
Additional context
Code
The text was updated successfully, but these errors were encountered: