Topic: ngx-trend not working with MDBootstrap (Angular)

devseevali free asked 5 years ago


ngx-trend chart (https://www.npmjs.com/package/ngx-trend) is not working on MDBootstrap Angular App (Nothing is displayed). When inspect only the parent tag is visible. SVG part is not generated Note: No any errors are shown in console.


devseevali free answered 5 years ago


My mistake. The ngx-trend module was added to the app.module not to the particular module.

Thanks.


Damian Gemza staff answered 5 years ago


Dear devseevali,

I have tried to reproduce your problem but without success.

I have installed the ngx-trend library with npm install ngx-trend command

Then I have imported the TrendModule in my app.module.ts file.

As the last step, I have copied the code from ngx-trend documentation into my app, and it's working fine.

Please check, if you have imported the TrendModule correctly.

Here's the screenshot from my app: https://screenshots.firefox.com/FEWHMogr8dY2QBEu/localhost

Best Regards,

Damian



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 7.4.0
  • Device: N/A
  • Browser: N/A
  • OS: N/A
  • Provided sample code: No
  • Provided link: Yes