I faced an issue when I tried to use this plotly directive with angular-material framework. The "layout" attribute of the plotly directive was always undefined and then ignored by plotly so I was not able to display a title (for example) to my graph neither change their size.
The reason is because "layout" as html plotly tag attribute is also an angular-material directive. I suppose that the framework was then transforming the attribute causing him to be undefined.
I renamed the attributes of the plotly directive to "plotly-data", "plotly-layout" and "plotly-options" and it totally resolved my issue.
Well, I don't know if you should actually change the code and prefix attributes or if each user should adapt it itself but, now, people are aware of this kind of conflict.
Hi there !
I faced an issue when I tried to use this plotly directive with angular-material framework. The "layout" attribute of the plotly directive was always undefined and then ignored by plotly so I was not able to display a title (for example) to my graph neither change their size.
The reason is because "layout" as html plotly tag attribute is also an angular-material directive. I suppose that the framework was then transforming the attribute causing him to be undefined.
I renamed the attributes of the plotly directive to "plotly-data", "plotly-layout" and "plotly-options" and it totally resolved my issue.
Well, I don't know if you should actually change the code and prefix attributes or if each user should adapt it itself but, now, people are aware of this kind of conflict.