I want to just remove the number 33
from this, I want it to just show series-4
what to do to hide it from tooltip?
You can customize the tooltip by providing formatters. In this case, you'll want to override both the title (seriesName
) and the y value label. In place of the y value, return a blank string.
You'll need to provide a formatter for the title as well because not doing so will default to the series title being shown followed by a colon.
tooltip: {
y: {
formatter: function(val) {
return ''
},
title: {
formatter: function (seriesName) {
return seriesName
}
}
}
}