I am experiencing issues integrating ECharts in an Angular library (called Phoebus) that is used as a widget in Thingsboard. When attempting to render the charts, they do not get integrated correctly within the Thingsboard environment. Below are the details of my setup and the steps to reproduce the issue.
I have verified that the chart container has the correct dimensions and that ECharts is being initialized.
The same code works correctly when used directly in a standard Angular project without the library setup and Thingsboard.
It seems that the issue arises when integrating the Angular library (Phoebus) into the Thingsboard environment.
Possible Causes:
There may be conflicts between how Thingsboard handles Angular components and how ECharts expects to be rendered.
Steps Taken to Troubleshoot:
Ensured all dependencies are correctly installed and up-to-date.
Tried different initialization methods for ECharts.
Verified that the chart container dimensions are correctly set.
Version
5.5.1
Link to Minimal Reproduction
https://github.com/apache/echarts
Steps to Reproduce
Since I cannot do a setup to reproduce the issue, i will try to give you the detailed steps to reproduce this issue:
npm install echarts
.Uncaught (in promise) Error: Error loading ./phoebus-index-d2b9972e.js
Current Behavior
Uncaught (in promise) Error: Error loading ./phoebus-index-d2b9972e.js
Expected Behavior
The EChart should render correctly within the Thingsboard widget.
Environment
Any additional comments?
Description:
I am experiencing issues integrating ECharts in an Angular library (called Phoebus) that is used as a widget in Thingsboard. When attempting to render the charts, they do not get integrated correctly within the Thingsboard environment. Below are the details of my setup and the steps to reproduce the issue.
Possible Causes:
Steps Taken to Troubleshoot: