{"action":"created","issue":{"url":"https://api.github.com/repos/ramnathv/rCharts/issues/648","labels_url":"https://api.github.com/repos/ramnathv/rCharts/issues/648/labels{/name}","comments_url":"https://api.github.com/repos/ramnathv/rCharts/issues/648/comments","events_url":"https://api.github.com/repos/ramnathv/rCharts/issues/648/events","html_url":"https://github.com/ramnathv/rCharts/issues/648","id":100880502,"number":648,"title":"unable to change tooltip text","user":{"login":"trotter12","id":13788719,"avatar_url":"https://avatars.githubusercontent.com/u/13788719?v=3","gravatar_id":"","url":"https://api.github.com/users/trotter12","html_url":"https://github.com/trotter12","followers_url":"https://api.github.com/users/trotter12/followers","following_url":"https://api.github.com/users/trotter12/following{/other_user}","gists_url":"https://api.github.com/users/trotter12/gists{/gist_id}","starred_url":"https://api.github.com/users/trotter12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trotter12/subscriptions","organizations_url":"https://api.github.com/users/trotter12/orgs","repos_url":"https://api.github.com/users/trotter12/repos","events_url":"https://api.github.com/users/trotter12/events{/privacy}","received_events_url":"https://api.github.com/users/trotter12/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-13T22:05:36Z","updated_at":"2015-09-30T11:59:05Z","closed_at":null,"body":"Hi,\r\n\r\nPFB my code:\r\n\r\nlmfit = lm( as.matrix(Data[1])~as.matrix(Data[2]) )\r\ndat = fortify(lmfit, data = Data)\r\n\r\n\r\nnames(dat) = gsub('\\\\.', '_', names(dat))\r\n\r\np1 <- rPlot(OAS~OASD, data = dat, type = 'point')\r\np1$layer(y = '_fitted', copy_layer = T, type = 'line',\r\n         color = list(const = 'red'),\r\n         tooltip = \"function(item){#! return item.Cusip} !#\")\r\np1\r\n\r\nDespite changing the value in the function for tooltip, I am still getting teh default x and y values.\r\nHow can I change the text of the tooltip?\r\n\r\nThanks\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ramnathv/rCharts/issues/comments/144374612","html_url":"https://github.com/ramnathv/rCharts/issues/648#issuecomment-144374612","issue_url":"https://api.github.com/repos/ramnathv/rCharts/issues/648","id":144374612,"user":{"login":"mickeyvip","id":220427,"avatar_url":"https://avatars.githubusercontent.com/u/220427?v=3","gravatar_id":"","url":"https://api.github.com/users/mickeyvip","html_url":"https://github.com/mickeyvip","followers_url":"https://api.github.com/users/mickeyvip/followers","following_url":"https://api.github.com/users/mickeyvip/following{/other_user}","gists_url":"https://api.github.com/users/mickeyvip/gists{/gist_id}","starred_url":"https://api.github.com/users/mickeyvip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mickeyvip/subscriptions","organizations_url":"https://api.github.com/users/mickeyvip/orgs","repos_url":"https://api.github.com/users/mickeyvip/repos","events_url":"https://api.github.com/users/mickeyvip/events{/privacy}","received_events_url":"https://api.github.com/users/mickeyvip/received_events","type":"User","site_admin":false},"created_at":"2015-09-30T11:59:05Z","updated_at":"2015-09-30T11:59:05Z","body":"I am not an expert, but it seems you have the first `#!` not in the beginning of the JavaScript code.\r\n\r\nI think it should be:\r\n\r\n```r\r\ntooltip = \"#! function(item) { return item.Cusip; } !#\"\r\n``` \r\n\r\nHope that helped.\r\n"}}