radar || polarArea chart -TypeError: Cannot set property 'backdropColor' of undefined
See original GitHub issueExpected Behavior
There should be a backgroundColor /backdropColor Chart.default property for the scale/ticks options.
Current Behavior
I can change the font color with fontColor only but not the background.
Chart.defaults.ticks.backgroundColor = 'transparent'
Chart.defaults.ticks.backdropColor = 'transparent'
Error:
Render Graph Error on polarArea : TypeError: Cannot set property 'backgroundColor' of undefined
Render Graph Error on radar : TypeError: Cannot set property 'backgroundColor' of undefined
Render Graph Error on radar : TypeError: Cannot set property 'backdropColor' of undefined
I am trying to display a radar || polarArea chart on a page with a dark background.
Thank you!
Possible Solution
I’m looking for a way to set the background color via the global.default settings for the ticks in radar and polarArea. You can use the options, but I would always have to do this explicitly for all displays. It would be easier for me if I could do this with the global settings.
Environment
- Chart.js version: “chart.js”: “^2.9.4”
- Browser name and version: Chrome Version 86.0.4240.80 (Offizieller Build) (x86_64)
Issue Analytics
- State:
- Created 3 years ago
- Comments:24 (11 by maintainers)
Top Results From Across the Web
TypeError: Cannot set property 'backgroundColor' of undefined
To answer my own question,. Javascript has reserved words which cannot be used these reserved words as variables, labels, or function names.
Read more >Polar Area Chart - Chart.js
Polar area charts are similar to pie charts, but each segment has the same angle - the radius of the segment differs depending...
Read more >Getting Started With Chart.js: Axes and Scales - Code Tutsplus
For example, if you see a plot of car speed and can't figure out the unit ... This scale type is used for...
Read more >search_plus_index.json - UNPKG - chart.js
some properties may be undefined so be sure to test any context property ... types: line bar radar polar area doughnut and pie...
Read more >Chart.js issue #6188 fixed (with title) - CodePen
(c) 2019 Chart.js Contributors. 15. * Released under the MIT License. 16. */. 17 !function(t,e){"object"==typeof exports&&"undefined"!=typeof ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@etimberg
Yes there is a div before the canvas
Closing in favor of #8056