我试图重新创建这个例子:http: //jsfiddle.net/6gw5P/239/
highchart() %>%
hc_chart(type=list('bar')) %>%
hc_xAxis(list(categories=c('Apples', 'Oranges', 'Pears', 'Grapes', 'Bananas'))) %>%
hc_plotOptions(bar=list(stacking = 'normal')) %>%
hc_series(
list(
name = 'John and Joe',
data = c(5, 3, 4, 7, 2),
stack = 'Male'
),
list(
linkedTo ='Previous',
name = "Joe",
data =c(2, 5, 6, 2, 1),
stack = 'Male'
),
list(
name = 'Jane and Janet',
data = c(2, 5, 6, 2, 1),
stack = 'Female'
),
list(
linkedTo ='Previous',
name = "Janet",
data =c(3, 0, 4, 4, 3),
stack = 'Female'
))
它的工作原理是没有为 Joe 和 Janet 显示图例,但是当单击图例时,de (de)selection 对两者都不起作用。这还没有集成higcharter
吗?