{"action":"closed","issue":{"url":"https://api.github.com/repos/grafana/grafana/issues/3255","labels_url":"https://api.github.com/repos/grafana/grafana/issues/3255/labels{/name}","comments_url":"https://api.github.com/repos/grafana/grafana/issues/3255/comments","events_url":"https://api.github.com/repos/grafana/grafana/issues/3255/events","html_url":"https://github.com/grafana/grafana/issues/3255","id":117165441,"number":3255,"title":"Add query to existing graph panel programmatically","user":{"login":"spynode","id":10826593,"avatar_url":"https://avatars.githubusercontent.com/u/10826593?v=3","gravatar_id":"","url":"https://api.github.com/users/spynode","html_url":"https://github.com/spynode","followers_url":"https://api.github.com/users/spynode/followers","following_url":"https://api.github.com/users/spynode/following{/other_user}","gists_url":"https://api.github.com/users/spynode/gists{/gist_id}","starred_url":"https://api.github.com/users/spynode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spynode/subscriptions","organizations_url":"https://api.github.com/users/spynode/orgs","repos_url":"https://api.github.com/users/spynode/repos","events_url":"https://api.github.com/users/spynode/events{/privacy}","received_events_url":"https://api.github.com/users/spynode/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-16T16:39:49Z","updated_at":"2015-11-17T15:47:20Z","closed_at":"2015-11-17T15:47:20Z","body":"I am trying to create a dashboard with 2 panels. One is custom panel with metric list, where individual items are links. Second panel is Graph. What Grafana JS functions I should use if I want to make queries added or removed from Graph panel upon clicking on links in the custom panel in real time? Is there such possibility in current Grafana JS API to add/remove  query to existing Graph panel on the fly? I am using KairosDB backend plugin. Thanks a lot."}}