-1

How to set "prd_nm" column to bubble chart's data label? I try to use "plot Options : format" option, but i can't find it.

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
Jaywant Khedkar
  • 5,941
  • 2
  • 44
  • 55
ash
  • 33
  • 1
  • 6

1 Answers1

0

You have a little typo there with formmat. Please try to change your code to:

hc$plotOptions(series=list(dataLabels=list(enabled=TRUE, format="{prd_nm}")))
daniel_s
  • 3,635
  • 1
  • 8
  • 24