1
movies
데이터 세트의 산점도를 만들고 싶습니다. 사용자가 포인트를 스크롤하면 영화의 제목이 표시됩니다. 위의 인라인 주석에서 언급 한 바와 같이rCharts NVD3 사용자 정의 툴팁
movies <- data(movies)
p1 <- nPlot(length ~ votes,
group = 'mpaa',
data = movies,
type = 'scatterChart',
#the following line seems to have NO EFFECT:
tooltip = "#!function(item){ return item.title + ' ' + '('+item.year+')'}!#")
#item is not a valid input to the tooltipContent function
p1$chart(tooltipContent = "#! function(key, x, y){
return key + ' '+item.year
} !#")
p1$print("chart3")
p1
는, 툴팁을 사용자 정의 할 수 이러한 시도 중 어느 것도 나를 위해 노력하고 있습니다 : rCharts rNVD3 tooltip customisation에서 답을 사용하여, 나는 다음과 같은 썼다.