score:1
Accepted answer
I think you would be able to do this using the tooltip.formatter from the highcharts js API: https://api.highcharts.com/highcharts/tooltip.formatter
You can see a handy article on how to do it here: https://www.highcharts.com/blog/tutorials/working-with-highcharts-javascript-syntax-in-r/?fbclid=IwAR3UzztbrY4rdCbOw1W7DmSq4mWJswJZxIw-xOqGbjIRExj-gsuVEO2zM00
library('highcharter')
highchart() %>%
hc_add_series(
type = "bubble",
data = list(5, 4, 3, 5)
) %>%
hc_chart(events = list(load = JS("function() {
var chart = this; chart.update({
tooltip: {
formatter: function () {
return 'The value for <b>' + this.x +
'</b> is <b>' + this.y + '</b>';
}
}
});
}
")
))
Source: stackoverflow.com
Related Articles
- how to give different names on tooltip for one series in highcharts R
- Weird character in front of Highcharts tooltip series names
- How can I apply different background color to entire tooltip for different series in highcharts
- Highcharts tooltip format different with series
- How to have multiple highcharts with different series data in vuejs without repeating code
- Highcharts displays series names but missing data points from json source
- Display tooltip for invisible series in Highcharts
- Highcharts - How to hide series name and Y value in tooltip
- Highcharts shared tooltip requires different valueSuffix and varying decimals
- highcharts - chart names for multiple pie chart series in one chart
- Highcharts: Conditional tooltip based on multiple series names (OR logic operator)
- Highcharts shared tooltip for line series and scatter plot not working
- Increase different marker sizes when hovering series using highcharts
- How to hide one series data info in tooltip using highcharts
- Highcharts add tooltip that has a small arrow pointing toward the series
- Can I sychronize two highcharts series with different years (leap year)
- Highcharts JS- add third variable to tooltip for two series
- Highcharts - Tooltip and series name are out of their boxes in chrome
- Highcharts shared tooltip between charts with multiple series and shared tooltip
- different tooltip than x-axis category text - highcharts
- Highcharts - Series tooltip doesn't work when plotting lines that zigzag on the x axis
- How to edit tooltip in Highcharts C# code
- Highcharts - Aligning dateTime series for shared tooltip
- Adding different style to a series in legend in Highcharts
- Changing tooltip shape for a series in Highcharts
- how to use highcharts tooltip formatter in python code
- Highcharts synchronize tooltip on multiple charts with multiple series
- Highcharts: Format series names in tooltip
- Highcharts Modify Tooltip for One Series
- Highcharts series showing different data for 'column' and 'line' chart
- Highcharts shared tooltip positioning if single value only
- How to draw a Highcharts in opened modal window by using ui-bootstrap directive?
- Scrollbar creating overlaping chart div
- Add plot line to heat map
- Adding a string to highcharts tooltip based on a separate data series
- Plotting the below json in a HighChart
- High charts not showing all the values on X-asix
- toggle pie chart data using external button
- Highcharts. Add text at right side and export all into PDF
- Highcharts JS - Sankey Diagram Axis
- Highstock table data: navigable with the range selector and the navigator - scrollbar
- Highcharts addaxis measure dynamically
- Highchart line graph - Parse json
- $(...).highcharts is not a function
- Grouped and stacked columns with shared series
- Setting variable column size in bar highchart (Rshiny)
- Resize height with Highcharts
- JSON parsing in Highcharts
- Allow mouse event behind a plotband
- Get container element inside Highcharts