Building datasets from multiple ember-data objects (For reporting, D3, etc)


Hey all,

I am looking to create a sort-of data superset based on multiple levels of ember-data objects. As an example of how these relations might work I have contrived a similar pattern to something you may be used to seeing.

Imagine three ember-data model objects as in this gist:

I am looking to build a dataset that I can pass into D3.js based on these objects in a flat (“joined” would be a good word here for those familiar with SQL) manner. Ideally I could have an object that would observe my models (so the dataset would update as promises resolve).

Has anyone needed to do something like this?