Building a textbox to highlight the difference between two points
data-visualisation
annotations
When the x axis is showing dates… turns out it wasn’t too bad!
Working on a project for a client who wants a textbox specifying the difference between two points on a plot.
- The plan: place the textbox at the mid point between the x and y coordinates of the two points.
- The challenge: x-axis = dates.
Turns out, that’s not a problem! We can get the x-coordinate for the box like this!
🥳
Reuse
Citation
For attribution, please cite this work as:
Thompson, Cara. 2022. “Building a Textbox to Highlight the
Difference Between Two Points.” June 17, 2022. https://www.cararthompson.com/posts/2022-06-17-working-on-a-project-for/.
