【发布时间】:2019-01-08 12:39:49
【问题描述】:
如何将“prd_nm”列设置为气泡图的数据标签? 我尝试使用“绘图选项:格式”选项,但我找不到它。
data <- top30
colnames(data) <- c('prd_rk', 'prd_nm', 'category', 'strategy', 'plc',
'sales', 'purchases', 'customers', 'age', 'purchase_rate',
'repurchase_rate')
hc <- hPlot(sales ~ purchases, data = data, type = "bubble", size =
"customers", group = "strategy")
hc$plotOptions(series=list(dataLabels=list(enabled=TRUE, formmat= .
{"y"})))
hc$set(height = 500)
hc$colors(palette)
hc
【问题讨论】:
-
改进格式
-
嗨,ash,您可以在这里找到如何从外部数据源为气泡系列设置 dataLabels 的示例:jsfiddle.net/BlackLabel/whsqe1b4
标签: highcharts shiny rcharts