Does angular-chart.js supports angular 2 and higher versions?









up vote
-2
down vote

favorite












I am using angular version 5.x and tried to use angular-chart.js for charts.
But I see it is not working, not sure if I am doing it correctly.
Here is the code I copied and modified



<canvas id="bar" class="chart chart-bar" [chart-data]="data" 
[chart-labels]="labels" [chart-series]="series"></canvas>


Expected the attributes in canvas element to be @Input binding elements, but
I am getting compilation error. Please correct me if I am doing something
wrong.










share|improve this question























  • Hello! If you could provide the code that you are using and the compilation error you are getting, it will be much easier to give you the help you need.
    – Wrokar
    Nov 9 at 19:04










  • all the attributes which are in square brackets are giving compilation errors
    – Satya Narayana
    Nov 9 at 19:14






  • 1




    Add the compilation error in the question.
    – Maihan Nijat
    Nov 9 at 19:16














up vote
-2
down vote

favorite












I am using angular version 5.x and tried to use angular-chart.js for charts.
But I see it is not working, not sure if I am doing it correctly.
Here is the code I copied and modified



<canvas id="bar" class="chart chart-bar" [chart-data]="data" 
[chart-labels]="labels" [chart-series]="series"></canvas>


Expected the attributes in canvas element to be @Input binding elements, but
I am getting compilation error. Please correct me if I am doing something
wrong.










share|improve this question























  • Hello! If you could provide the code that you are using and the compilation error you are getting, it will be much easier to give you the help you need.
    – Wrokar
    Nov 9 at 19:04










  • all the attributes which are in square brackets are giving compilation errors
    – Satya Narayana
    Nov 9 at 19:14






  • 1




    Add the compilation error in the question.
    – Maihan Nijat
    Nov 9 at 19:16












up vote
-2
down vote

favorite









up vote
-2
down vote

favorite











I am using angular version 5.x and tried to use angular-chart.js for charts.
But I see it is not working, not sure if I am doing it correctly.
Here is the code I copied and modified



<canvas id="bar" class="chart chart-bar" [chart-data]="data" 
[chart-labels]="labels" [chart-series]="series"></canvas>


Expected the attributes in canvas element to be @Input binding elements, but
I am getting compilation error. Please correct me if I am doing something
wrong.










share|improve this question















I am using angular version 5.x and tried to use angular-chart.js for charts.
But I see it is not working, not sure if I am doing it correctly.
Here is the code I copied and modified



<canvas id="bar" class="chart chart-bar" [chart-data]="data" 
[chart-labels]="labels" [chart-series]="series"></canvas>


Expected the attributes in canvas element to be @Input binding elements, but
I am getting compilation error. Please correct me if I am doing something
wrong.







angular angular-chart






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 9 at 19:13

























asked Nov 9 at 19:02









Satya Narayana

44




44











  • Hello! If you could provide the code that you are using and the compilation error you are getting, it will be much easier to give you the help you need.
    – Wrokar
    Nov 9 at 19:04










  • all the attributes which are in square brackets are giving compilation errors
    – Satya Narayana
    Nov 9 at 19:14






  • 1




    Add the compilation error in the question.
    – Maihan Nijat
    Nov 9 at 19:16
















  • Hello! If you could provide the code that you are using and the compilation error you are getting, it will be much easier to give you the help you need.
    – Wrokar
    Nov 9 at 19:04










  • all the attributes which are in square brackets are giving compilation errors
    – Satya Narayana
    Nov 9 at 19:14






  • 1




    Add the compilation error in the question.
    – Maihan Nijat
    Nov 9 at 19:16















Hello! If you could provide the code that you are using and the compilation error you are getting, it will be much easier to give you the help you need.
– Wrokar
Nov 9 at 19:04




Hello! If you could provide the code that you are using and the compilation error you are getting, it will be much easier to give you the help you need.
– Wrokar
Nov 9 at 19:04












all the attributes which are in square brackets are giving compilation errors
– Satya Narayana
Nov 9 at 19:14




all the attributes which are in square brackets are giving compilation errors
– Satya Narayana
Nov 9 at 19:14




1




1




Add the compilation error in the question.
– Maihan Nijat
Nov 9 at 19:16




Add the compilation error in the question.
– Maihan Nijat
Nov 9 at 19:16

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53231841%2fdoes-angular-chart-js-supports-angular-2-and-higher-versions%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53231841%2fdoes-angular-chart-js-supports-angular-2-and-higher-versions%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Use pre created SQLite database for Android project in kotlin

Darth Vader #20

Ondo