question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] labelOpts undefined

See original GitHub issue

on 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:closed
  • Created 6 years ago
  • Comments:15 (12 by maintainers)

github_iconTop GitHub Comments

8reactions
scooter12commented, Feb 20, 2018

@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.

1reaction
cinder92commented, May 28, 2018

@scooter12 woooow, im using Gentellela template, and thats the issue, thanks a lot!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found