{"action":"closed","issue":{"url":"https://api.github.com/repos/almende/vis/issues/339","labels_url":"https://api.github.com/repos/almende/vis/issues/339/labels{/name}","comments_url":"https://api.github.com/repos/almende/vis/issues/339/comments","events_url":"https://api.github.com/repos/almende/vis/issues/339/events","html_url":"https://github.com/almende/vis/issues/339","id":43623171,"number":339,"title":"Filter DataSet or DataView for Timeline","user":{"login":"tengl","id":590967,"avatar_url":"https://avatars.githubusercontent.com/u/590967?v=3","gravatar_id":"","url":"https://api.github.com/users/tengl","html_url":"https://github.com/tengl","followers_url":"https://api.github.com/users/tengl/followers","following_url":"https://api.github.com/users/tengl/following{/other_user}","gists_url":"https://api.github.com/users/tengl/gists{/gist_id}","starred_url":"https://api.github.com/users/tengl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tengl/subscriptions","organizations_url":"https://api.github.com/users/tengl/orgs","repos_url":"https://api.github.com/users/tengl/repos","events_url":"https://api.github.com/users/tengl/events{/privacy}","received_events_url":"https://api.github.com/users/tengl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/almende/vis/labels/DataSet","name":"DataSet","color":"fbca04"},{"url":"https://api.github.com/repos/almende/vis/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/almende/vis/labels/Timeline","name":"Timeline","color":"0052cc"}],"state":"closed","locked":false,"assignee":{"login":"josdejong","id":568626,"avatar_url":"https://avatars.githubusercontent.com/u/568626?v=3","gravatar_id":"","url":"https://api.github.com/users/josdejong","html_url":"https://github.com/josdejong","followers_url":"https://api.github.com/users/josdejong/followers","following_url":"https://api.github.com/users/josdejong/following{/other_user}","gists_url":"https://api.github.com/users/josdejong/gists{/gist_id}","starred_url":"https://api.github.com/users/josdejong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josdejong/subscriptions","organizations_url":"https://api.github.com/users/josdejong/orgs","repos_url":"https://api.github.com/users/josdejong/repos","events_url":"https://api.github.com/users/josdejong/events{/privacy}","received_events_url":"https://api.github.com/users/josdejong/received_events","type":"User","site_admin":false},"milestone":null,"comments":18,"created_at":"2014-09-23T12:30:44Z","updated_at":"2015-01-09T14:22:08Z","closed_at":"2015-01-09T14:22:08Z","body":"Hi,\r\n\r\nI've been trying to set up a dynamic but simple filter on a Timeline. I want to hide or display items based on a property on each item, e.g. if I check a checkbox I want to display items where item.itemType = 1. If I uncheck the checkbox I want to hide items where item.itemType = 1. \r\n\r\nHow can I accomplish that? I've tried to use DataView with filter but it doesn't evaluate the filter when the conditions are changed. I've tried to use timeline.setItems(new DataView(originalData, {filter: ... )) but the items are still there even if they should be filtered out. Timeline.redraw() doesn't help either.\r\n\r\nAny ideas what I should do?\r\n\r\nThanks for a great library otherwise. "}}