Jump to content
JChartFX Community
  • 0
Donna

jchartfx in Angular 2+ project

Question

We have been using jchartfx in our angularjs project and it has worked great.  Now we are converting our project to Angular 6, but I'm not seeing how it is possible.  I tried just referencing the files in the angular.json scripts section, but I am getting an error "Cannot read property 'offsetWidth' of undefined" from jchartfx.system.js and jchartfx.coreVector.js when I call [my chart].create([my divholder]). 

How can I use jchartfx in an angular 2+ project?  Is there an npm install available?  If not, can it be wrapped somehow?

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Are you using the most recent jChartFX version? If not I would first recommend you download it and try again with the updated scripts.

We do have an angular2 typescript wrapper for our control but it is not feature complete and has not been tested in recent angular versions, if you are interested in trying this please send me a message.

Regards,

JuanC

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...