We have updated Flexmonster Software License Agreement, effective as of September 30, 2024. Learn more about what’s changed.

updateData with charts in Angular

Answered
Pijat-Prisset Kevin asked on April 20, 2022

Hello,
I put the data "Nombre de phrases" on the Y axis and the data "Nombre de mots" on the X axis like I wanted.
But when I try to update my interface, the data "Nombre de mots" put itself on the 2 axis.
I tried to resolve this on JSFiddle and it works but only on JSFiddle : https://jsfiddle.net/muf6e1xv/13/
The only difference I see between my program and the one I made on JSFiddle is the fact I use Angular on the project I'm working on.
 
 

Maksym Diachenko created this ticket from #45223

2 answers

Public
Maksym Diachenko Maksym Diachenko Flexmonster April 20, 2022

Hello!

Thank you for your question.

The Angular version of Flexmonster is a wrapper, containing the basic Flexmonster JS library, so they are basically using the same code and there shouldn't be any differences in functionality.

We checked your screenshots with Angular code and reproduced a similar behavior. Please note that there were some differences in the Angular code screenshots and JSFidlle you provided:

  • In JSFiddle, the report is set inside the Flexmonster component. 
  • In Angular, it is initialized via the `setReport` API call on the ready event triggered.

Could you please tell us more about your use case, e.g., why you use the setReport instead of specifying the report property in fm-pivot?

Looking forwards to hearing from you.

Best Regards,
Maksym

Public
Maksym Diachenko Maksym Diachenko Flexmonster April 28, 2022

Hello!

Our team would like to know if you tried to configure the report inside fm-pivot in the report property? Did it help to solve the issue? Otherwise, we are ready to provide further assistance if this option cannot be applied.

Best Regards,
Maksym

Please login or Register to Submit Answer