{"action":"opened","issue":{"url":"https://api.github.com/repos/altair-viz/altair/issues/1047","repository_url":"https://api.github.com/repos/altair-viz/altair","labels_url":"https://api.github.com/repos/altair-viz/altair/issues/1047/labels{/name}","comments_url":"https://api.github.com/repos/altair-viz/altair/issues/1047/comments","events_url":"https://api.github.com/repos/altair-viz/altair/issues/1047/events","html_url":"https://github.com/altair-viz/altair/issues/1047","id":344979681,"node_id":"MDU6SXNzdWUzNDQ5Nzk2ODE=","number":1047,"title":"Cross filter a chart with another chart","user":{"login":"Alcampopiano","id":4624246,"node_id":"MDQ6VXNlcjQ2MjQyNDY=","avatar_url":"https://avatars1.githubusercontent.com/u/4624246?v=4","gravatar_id":"","url":"https://api.github.com/users/Alcampopiano","html_url":"https://github.com/Alcampopiano","followers_url":"https://api.github.com/users/Alcampopiano/followers","following_url":"https://api.github.com/users/Alcampopiano/following{/other_user}","gists_url":"https://api.github.com/users/Alcampopiano/gists{/gist_id}","starred_url":"https://api.github.com/users/Alcampopiano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alcampopiano/subscriptions","organizations_url":"https://api.github.com/users/Alcampopiano/orgs","repos_url":"https://api.github.com/users/Alcampopiano/repos","events_url":"https://api.github.com/users/Alcampopiano/events{/privacy}","received_events_url":"https://api.github.com/users/Alcampopiano/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-26T19:42:27Z","updated_at":"2018-07-26T19:42:27Z","closed_at":null,"author_association":"NONE","body":"Hi Jake,\r\n\r\nWondering if you can give me a nudge in the right direction here. Very similar to the [IMDB cross filter example in the gallery](https://altair-viz.github.io/gallery/interactive_cross_highlight.html), I'm trying to click a mark on one chart, in order to show corresponding counts in another chart.\r\n\r\nHere is an almost working example but as you can see the dot chart does not filter the categories and counts on the bar chart:\r\n\r\n```python\r\ndf=pd.DataFrame({'id': range(0, 1000), 'school': np.random.randint(9, size=1000), 'university': np.random.randint(25, size=1000), 'program': np.random.randint(15, size=1000)})\r\n\r\nselector = alt.selection_multi()\r\n\r\na=alt.Chart(df).mark_circle().encode(\r\n    y='university:N',\r\n    x='school:N',\r\n    size='count(id)',\r\n    color=alt.condition(selector, 'school:N', alt.ColorValue(\"grey\"))\r\n).properties(width=800, height=500, selection=selector)\r\n\r\nb=alt.Chart(df).mark_bar().encode(\r\n    y='count(id)',\r\n    x='program:N',\r\n    color=alt.value('lightgray')\r\n).properties(width=500, height=400).transform_filter(selector)\r\n\r\na|b\r\n```\r\nAny help would be much appreciated.\r\n\r\nAl"}}
{"actor":{"display_login":"Alcampopiano"}}