From the course: R: Interactive Visualizations with htmlwidgets

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Modify tooltips in Highcharter

Modify tooltips in Highcharter - R Tutorial

From the course: R: Interactive Visualizations with htmlwidgets

Start my 1-month free trial

Modify tooltips in Highcharter

- [Instructor] Highcharter provides us a lot of flexibility in the customization of tooltips. Tooltips are the pieces of information shown to you when you hover your cursor or your finger over markers or a series within a highcharter chart. It does, however, quickly become fairly advanced and might require some basic experience in JavaScript. Let's look at simple things first, so let's open up bar-chart.R and see what we have here. Let's decrease the size of the environment, because I don't need it for now. At the top of the script file, we load the tidyverse library on line one, which I'll do with command enter, and then, on line two, we load the highcharter library as we're going to create highcharter charts. I do that with command enter. Now, every time you load the highcharter library, you get a message reminding you, highchart is not free for commercial or governmental use. On line four, we use read_csv to import our CSV file and store it against the variable gig-economy-data…

Contents