I was hoping someone could help me to determine the best way to accomplish the following using Ember:
- User arrives at a page, it has a list of checkboxes down the left hand sidebar, and a graph on the right hand section of the page
- There are 3 of the 15 checkboxes preselected when they arrive, which maps to a particular pre-computed graph
- If the user selects a different checkbox, go to the server, ask for the new graph results and display the graph.
What is the proper architecture to make this work in Ember? There are far too many combinations to precompute all (32,767 combinations to be exact, which takes weeks to calculate), so I’ll need to pull as oneoffs.
There’s an obvious master/detail relationship here between the checkboxes and the graph. The obvious way would be to hook up a jquery event handler to watch for changes to the check boxes, perform an AJAX call and then manually update the view containing the graph, but it feels dirty to me.
Any help would be appreciated!