DomStringMap: Data not transmitted correctly if Array of Numbers
flowirtz opened this issue · comments
if data is supplied as array of numbers (see dataset in i.e. activityChart and pieChart), one must insert the following code into the component at the top:
<div style="display:none;">{{dataset}}</div>
If not, only a DomStringMap
whill be returned on this.dataset
.
This only applies to Arrays of Numbers, Arrays of Strings are not included.
WTF?!
TODO: find more elegant way to solve this. Maybe even file a bug with Polymer.
@MaximilianV as discussed.
@jak-ing suggested that it might be due to us using .ready
instead of .attached
(changed in branch activity chart afaik), worth looking into
see https://www.polymer-project.org/1.0/docs/devguide/registering-elements#lifecycle-callbacks
did anyone tried this solution proposal?