Skip to contents

A bar with a rounded end of 4 pixels, or less in a thin or short bar, and a square start, with its tooltip.

Usage

bar_path(x, y, len, h, fill, tip)

Arguments

x, y

The top left corner, in pixels.

len, h

The length and the height, in pixels.

fill

The colour.

tip

The text of the tooltip.

Value

A <path> element, as a character string.

Examples

rghcard:::bar_path(24, 245, 180, 10, "#338ced", "rwf: 120 stars")
#> [1] "<path d=\"M24.00,245.00 H200.00 A4.00,4.00 0 0 1 204.00,249.00 V251.00 A4.00,4.00 0 0 1 200.00,255.00 H24.00 Z\" fill=\"#338ced\"><title>rwf: 120 stars</title></path>"