Customization

All chart types (except graph) support these optional styling parameters:

For the practical side, which parameters to change first and what the result looks like, see the Styling Guide.

Parameter Type Default Description
pointStylestringcirclecircle, square, star, emoji, none
pointEmojistring●Any emoji (when pointStyle=emoji)
pointSizenumber4Point size in pixels (2-10)
borderRadiusnumber0Corner rounding for the chart area (0-32)
lineWidthnumber2Stroke width for lines (1-5)
bgStylestringnoneBackground effect: none, dots, grid, snow
bgstring#FFFFFFChart background: a hex color (with or without #), or transparent. Built into the chart itself, no CSS needed
bg2string-Second hex color: makes the background a top-to-bottom gradient from bg to bg2
bgOpacitynumber1Background opacity from 0 (invisible) to 1 (solid). Affects only the background, not the chart content
bgStyleColorstring#94A3B8Hex color of the bgStyle pattern (dots, grid, snow)
colorsstring-Comma-separated hex colors, with or without # (up to 20). Cycles when fewer colors than items. Overrides the theme palette
themestring-Ready-made color theme: pastel, vivid, warm, cool, ocean, sunset, forest, mono, retro, dark. Explicit colors override the theme palette
customCSSstring-Custom CSS injected into the SVG
showValuesbooleantrueShow/hide data values on chart

Examples

Point Styles

circlepointStyle=circle
Circle
squarepointStyle=square
Square
starpointStyle=star
Star

Background Styles

nonebgStyle=none
None
dotsbgStyle=dots
Dots
gridbgStyle=grid
Grid

Background

The background is part of the chart itself. Use bg for a color or transparent, bgOpacity for partial transparency, bg2 for a vertical gradient and bgStyleColor to recolor the bgStyle pattern. The legend strip follows the same background. Charts that do not use these parameters are unchanged.

/chart?type=bar&data=10,25,35,50&bg=transparent&apikey=YOUR_KEY
/chart?type=bar&data=10,25,35,50&bg=%23FFFFFF&bgOpacity=0.5&apikey=YOUR_KEY
/chart?type=bar&data=10,25,35,50&theme=dark&bg=%230B1220&bg2=%231E3A8A&bgStyle=grid&bgStyleColor=%2360A5FA&apikey=YOUR_KEY

Colors & Themes

Pass colors for a fully custom palette, or theme for a ready-made one (pastel, vivid, warm, cool, ocean, sunset, forest, mono, retro, dark). Explicit colors override the theme palette.

Custom colorscolors=#E11D48,#F59E0B,#10B981
Custom colors
Pastel themetheme=pastel
Pastel theme
Dark themetheme=dark
Dark theme

Border Radius

GET
/chart?type=bar&data=10,25,35,50&borderRadius=20&apikey=YOUR_KEY
ResultborderRadius=20
Border Radius

Custom CSS

Inject custom CSS directly into the SVG:

GET
/chart?type=bar&data=10,25,35,50&customCSS=text{fill:red}&apikey=YOUR_KEY