A column with a rounded top of 4 pixels, or less in a thin or short column, and a
square foot, with its tooltip.
Usage
column_path(x, y, w, h, fill, tip)
Arguments
- x, y
The top left corner, in pixels.
- w, h
The width and the height, in pixels.
- fill
The colour.
- tip
The text of the tooltip.
Value
A <path> element, as a character string.
Examples
rghcard:::column_path(40, 300, 12, 120, "#338ced", "3 Dec 2026: 45 page views")
#> [1] "<path d=\"M40.00,420.00 V304.00 A4.00,4.00 0 0 1 44.00,300.00 H48.00 A4.00,4.00 0 0 1 52.00,304.00 V420.00 Z\" fill=\"#338ced\"><title>3 Dec 2026: 45 page views</title></path>"