JustinG
(JustinG)
October 3, 2022, 2:39pm
2
See here for a partial explanation:
Hi Wolf, welcome to the forums!
This is an obscure, but known, limitation at the moment. The expression parser, the piece of the UI that lets you use dynamic code in the widgets, doesn’t work for yaml arrays (any part of the yaml where lines start with a - ).
The solution is to bypass the yaml array syntax, and just set the actionAnalyzerItems property to an array directly using an expression. Because the expression parser is based on javascript, an array is a comma-separated list of values…
It is possible that you can find a similar solution to the one presented in the post above, but 1) your expression will be slightly more complex, as you have an array of objects instead of just an array of strings and 2) I don’t know if expressions will work at all in this particular instance:
The chart components are slightly different than the other components since they are wrappers for eCharts and not f7 components. As I understand it, in the chart widgets, not all of the property values are passed through the expression parser. So there are some places, apparently period is one of them, where you cannot yet use expressions. You will likely have to submit a feature request on the webUI github page to get that resolved.
I’m not sure I fully understand what you’re asking here.…