powered by
Generate a badge similar to shields.io style with label and value. Both sides have properly rounded corners.
create_badge( label, value, color, font = "Jost", style = "margin:2px;", fontsize = 11, horiz_padding = 5, extra_right_pad = 2, class = "", shadow_offset = 2, corner_radius = 3, height = NULL, as_string = TRUE )
SVG string
Label text (left side)
Value text (right side)
Background color for value area
Font family name
CSS style string
Font size in pixels
Horizontal padding
Extra padding on right side
CSS class
Shadow offset in pixels
Corner radius for rounded rectangle
Minimum height (optional)
Return as character string
create_badge("UH", "192", "white") create_badge("Recurso Federal", "36,4 milhões", "#4CAF50")
Run the code above in your browser using DataLab