score:2
Accepted answer
if you pass in dat
as data
in your hc_add_series
function, you can access other columns in the tooltip
argument, like type
:
library(highcharter)
dat = data.frame(first = rnorm(10), second = rnorm(10), type = rep(c("aapl", "msft"),5))
highchart()%>%
#hc_xaxis(categories = dat$open_date)%>%
hc_add_series(name = "first", data = dat, hcaes(y = first), type = "column",
tooltip = list(pointformat = "{point.type}: {point.first}"))%>%
hc_add_series(name = "second", data = dat, hcaes(y = second), type = "line",
tooltip = list(pointformat = "{point.type}: {point.second}"))
Source: stackoverflow.com
Related Query
- Add Additional Information In Tooltip R Highcharts
- Add additional data to Pie Tooltip on Highcharts
- Set additional information in highcharts tooltip
- Highcharts - how to add additional information to chart
- Highcharts - add custom information to tooltip what caused price raise or price drop
- Add additional data in tooltip of Highcharts with dynamic x-axis category
- Add additional data to a Highcharts series for use in formatters
- Add tooltip to legend in highcharts when hovering
- Highcharts - add additional export options without losing default ones
- Highcharts add tooltip that has a small arrow pointing toward the series
- Highcharts JS- add third variable to tooltip for two series
- highcharts show additional custom data in tooltip
- How do i add mouse wheel code in Angular2 highcharts in typescript
- Add extra tooltip in Highcharts
- How to edit tooltip in Highcharts C# code
- how to use highcharts tooltip formatter in python code
- Highcharts Additional data in Tooltip
- Add a custom text tooltip that differs from point to point in Highcharts
- How to add a second tooltip to highcharts
- Highcharts: passing additional information to a tooltip
- Add an additional point to highcharts live data
- add to tooltip additional values from array
- how to add onclick event handler inside highcharts tooltip
- Add Source to Highcharts Export CSV
- Include additional highcharts source data in angular2 app
- Add custom data on tooltip of Highcharts donut graph
- Additional tooltip in Highcharts using Handlebars
- Highcharts add external tooltip into specific div
- Add tooltip to highcharts javascript
- Add additional data to tooltip in iOS which does not belongs to x&y-axis of graph
More Query from same tag
- How to slide highcharts?
- How to always show the plotLine in HighCharts?
- highcharts series remove function deletes all original series data (even after stored in new variable)
- Highcharts buttons with different menuitems not working
- Colors doesn't change using Highcharts.setOptions
- Highcarts: Hide xAxis categorie when serie is not visible
- Updating a point in a line chart when data grouping is in effect
- Highcharts how do i keep space between series the same but increase space between categories?
- Highcharts live graph setExtremes issue
- Rendering Highcharts legend using HTML causes issue with positioning/spacing
- How to call a plugin in CakePHP 2.x Shell?
- highcharts with null data points
- highcharts SVG drawing mousemove
- Highcharts: is there a way to offset lines slightly so same coordinates do not overlap?
- Highchart line graph - Parse json
- How to overwrite Highcharts credits default settings
- How to show data between two date range in spline chart of Highcharts?
- Is it possible to plot more than 35000 points in Highcharts
- Style dash in highchart graphic
- Rails Highstock Chart Installation
- How to disable zoom in Navigator?
- Highstock: DataGrouping & Approximation (average) on timestamp values
- how to disable highcharts animation on panning but still using on load
- Highstock with php and mysql
- How to center highcharts pie chart and legend on a page?
- Highcharts vertical stacked bar chart with negative values, is it possible?
- Highstock - Remove axis and series dynamically
- Highstock - disable vertical indicator
- Highchart first category label is not wrapping
- Highcharts passing time.