Did you also get a change to look at Quickly implementing PlotlyJS examples with Chart? I found it hugely useful in setting up a pattern in my apps for charts/visualizations. The key part is passing the data and the layout to the chart from a JS Query that generates JSON for each. From what I can see in your snippet, you have a "layout" key in your data JSON object, which I don't think will translate to the layout.
2 Likes