okfn/openspending — Issue #438: Function to link view states to dataset pages
Author: pudo
Created: 2012-02-28 16:13:16+00:00
State: open

There needs to be a way to offer a standard set of view states as visualization options when a user visits a dataset. This will basically add functionality similar to that of the old views system to the new view state mechanism.

The stored object could look something like:

{ 'widget': 'treemap', 'vsId': 'd41...', 'name': 'Spending by Dept', 'description': '...' }

Where widget refers to an internal registry, and vsId to a viewstate as mentioned in #437 (this can also be nested json).