I have a plotly chart as above. Reusable code as below.
plotly::ggplotly(ggplot(dplyr::as_tibble(rnorm(1000)), aes(value)) + stat_ecdf(geom = 'line'))
I want to rename and format the tooltip on hovering. For example, x-axis or 'value' (in the chart) can be 'Unit Price in ฿' while the y-axis is the Cumul Distribution.
So when I hover on the line, I want to be able to see something like below
Cumul Distribution: 78.2%
Unit Price : ฿0.81
Thanks!