[BUG] labelOpts undefined
See original GitHub issueon line 11546 in dist of 2.7.1:
var fontSize = valueOrDefault(labelOpts.fontSize, globalDefault.defaultFontSize);
labelOpts is undefined.
I just followed the basic getting started:
http://www.chartjs.org/docs/latest/getting-started/usage.html
Issue Analytics
- State:
- Created 6 years ago
- Comments:15 (12 by maintainers)
Top Results From Across the Web
Developers - [BUG] labelOpts undefined - - Bountysource
var fontSize = valueOrDefault(labelOpts.fontSize, globalDefault.defaultFontSize);. labelOpts is undefined. I just followed the basic getting started: http://www ...
Read more >Why am I getting an "undefined label" error in java?
Because you are outside of the loop. The label is visible only inside the loop. Labels are used only to break and continue...
Read more >mocha/mocha.js - chromium/src/third_party - Git at Google
var err = new Error('Uncaught, unspecified "error" event. (' + er + ')'); ... this.label = (opts.label !== undefined) ? opts.label : 'stdout';....
Read more >ng2-charts - UNPKG
valueOrDefault;\r\n\r\n function getBoxWidth(labelOpts, fontSize) {\r\n return ... if (typeof Chart === 'undefined') {\r\n console.log('Chart not defined ...
Read more >fmwww.bc.edu/RePEc/bocode/m/metan.ado
3.04 21Sep2010 * fixed small bug in counts option (`rawcounts' var truncated as str20) ... Other fixes: study is blank if undefined (should...
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 Free
Top 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
@sweatherall I don’t support you’re using a premade template on your site? Maybe something like Gentelella? I was having the same problem. Stumped me for hours. Turns out the template had an initialization routine that overwrote the label option completely. Do a search in your project for Chart.defaults.global and see if you get any hits.
@scooter12 woooow, im using Gentellela template, and thats the issue, thanks a lot!