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.

polymer integration error : Uncaught TypeError: (intermediate value).Line is not a function

See original GitHub issue

in polymer i try

var data = {
labels: ["January", "February", "March", "April", "May", "June", "July"],
datasets: [
    {
        label: "My First dataset",
        fillColor: "rgba(220,220,220,0.2)",
        strokeColor: "rgba(220,220,220,1)",
        pointColor: "rgba(220,220,220,1)",
        pointStrokeColor: "#fff",
        pointHighlightFill: "#fff",
        pointHighlightStroke: "rgba(220,220,220,1)",
        data: [65, 59, 80, 81, 56, 55, 40]
    },
    {
        label: "My Second dataset",
        fillColor: "rgba(151,187,205,0.2)",
        strokeColor: "rgba(151,187,205,1)",
        pointColor: "rgba(151,187,205,1)",
        pointStrokeColor: "#fff",
        pointHighlightFill: "#fff",
        pointHighlightStroke: "rgba(151,187,205,1)",
        data: [28, 48, 40, 19, 86, 27, 90]
    }
   ]
};
var ctx = this.$.mychart.getContext("2d")

//var ctx = this.getElementById("mychart").getContext("2d");
//d= document.createElement("canvas")

console.log(ctx)


var myLineChart = new Chart(ctx).Line(data);

i got this error Uncaught TypeError: (intermediate value).Line is not a function

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
etimbergcommented, Jan 26, 2016

@luluprat the method of instantiating charts has changed in v2. You can find documentation at http://nnnick.github.io/Chart.js/docs-v2/

0reactions
etimbergcommented, Apr 20, 2016

@JSoon there is an open issue to do that. Only @nnnick can update it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught TypeError: (intermediate value).Line is not a function
polymer integration error : Uncaught TypeError: (intermediate value).Line is not a function.
Read more >
Uncaught TypeError: (intermediate value)(...) is not a function
The error is a result of the missing semicolon on the third line: window. ... TypeError: (intermediate value)(intermediate value) is not a function....
Read more >
TypeError (intermediate value)(...) is not a function in JS
The "TypeError: (intermediate value)(...) is not a function" error occurs when we forget to place a semicolon between a function declaration and an...
Read more >
uncaught (in promise) typeerror: (intermediate value ...
The error is a result of the missing semicolon on the third line: ... TypeError: (intermediate value) (intermediate value) is not a function...
Read more >
Uncaught TypeError: (intermediate value).setHSpace is not a ...
[Resolved] Uncaught TypeError: (intermediate value).setHSpace is not a function ; Bruno Kos. Supporter. Languages: English (English ) German ( ...
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