{"action":"created","issue":{"url":"https://api.github.com/repos/DataTorrent/malhar-angular-dashboard/issues/124","labels_url":"https://api.github.com/repos/DataTorrent/malhar-angular-dashboard/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/DataTorrent/malhar-angular-dashboard/issues/124/comments","events_url":"https://api.github.com/repos/DataTorrent/malhar-angular-dashboard/issues/124/events","html_url":"https://github.com/DataTorrent/malhar-angular-dashboard/issues/124","id":62185562,"number":124,"title":"Saving chart/grid gadget options and setting to localStorage","user":{"login":"robertmazzo","id":8823366,"avatar_url":"https://avatars.githubusercontent.com/u/8823366?v=3","gravatar_id":"","url":"https://api.github.com/users/robertmazzo","html_url":"https://github.com/robertmazzo","followers_url":"https://api.github.com/users/robertmazzo/followers","following_url":"https://api.github.com/users/robertmazzo/following{/other_user}","gists_url":"https://api.github.com/users/robertmazzo/gists{/gist_id}","starred_url":"https://api.github.com/users/robertmazzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertmazzo/subscriptions","organizations_url":"https://api.github.com/users/robertmazzo/orgs","repos_url":"https://api.github.com/users/robertmazzo/repos","events_url":"https://api.github.com/users/robertmazzo/events{/privacy}","received_events_url":"https://api.github.com/users/robertmazzo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-16T19:28:33Z","updated_at":"2015-03-17T14:33:46Z","closed_at":null,"body":"Hi Andy,\r\nForgive me ahead of time if I'm missing something here regarding the saving of layouts, but I was trying to figure out why all the data options and settings on my UI gadgets are NOT persisting to localStorage.\r\n\r\nIn other words, I have a Kendo UI chart gadget that gets renders in a Dashboard widget.\r\n\r\nHere are the steps I take to render a chart gadget in a dashboard widget:\r\n1) I drag an icon onto the dashboard (I added some code in your directive to handle a drop event).\r\n2) I click on the settings icon to launch the modal \"configuration\" window\r\n3)  I configure my chart gadget and submit the request to my server.\r\n4) I parse the server data, then bind the JSON results to $scope.result.dataModel (i.e. I've added additional objects such as 'chartOptions.dataSource' and 'chartOptions.series' onto the dataModel in order to make this work).\r\n \r\nProblem: When I \"hard\" refresh my page (or re-run the app), I was hoping that the localStorage objects would have contained ALL my chart data - and therefore render the chart as before.\r\n\r\nQuestion: What do I need to do in order to save ALL my dashboard widget data so that my chart gadget gets re-rendered (until the next time I reconfigure the chart with newly-fetched server data).\r\n\r\nAm I looking at modify the save: and load: functions of the 'DashboardState' factory ? \r\n\r\nOr do I perhaps need to load up the persisted data in my customized 'ColumnChartDataModel' factory ? \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/DataTorrent/malhar-angular-dashboard/issues/comments/82386065","html_url":"https://github.com/DataTorrent/malhar-angular-dashboard/issues/124#issuecomment-82386065","issue_url":"https://api.github.com/repos/DataTorrent/malhar-angular-dashboard/issues/124","id":82386065,"user":{"login":"robertmazzo","id":8823366,"avatar_url":"https://avatars.githubusercontent.com/u/8823366?v=3","gravatar_id":"","url":"https://api.github.com/users/robertmazzo","html_url":"https://github.com/robertmazzo","followers_url":"https://api.github.com/users/robertmazzo/followers","following_url":"https://api.github.com/users/robertmazzo/following{/other_user}","gists_url":"https://api.github.com/users/robertmazzo/gists{/gist_id}","starred_url":"https://api.github.com/users/robertmazzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertmazzo/subscriptions","organizations_url":"https://api.github.com/users/robertmazzo/orgs","repos_url":"https://api.github.com/users/robertmazzo/repos","events_url":"https://api.github.com/users/robertmazzo/events{/privacy}","received_events_url":"https://api.github.com/users/robertmazzo/received_events","type":"User","site_admin":false},"created_at":"2015-03-17T14:33:46Z","updated_at":"2015-03-17T14:33:46Z","body":"Hi,\r\nwhen reviewing the source, I'm seeing dashboard.js in two places:\r\n1)  dist/malhar-angular-dashboard.js\r\n2)  src/components/directives/dashboard/dashboard.js\r\nAfter downloading the zip file, I noticed the dashboard directive code is slightly different between 1) and 2).\r\nPlease advise.\r\nthank you ,\r\nBob"}}