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 |
|---|---|---|---|
| pointStyle | string | circle | circle, square, star, emoji, none |
| pointEmoji | string | ● | Any emoji (when pointStyle=emoji) |
| pointSize | number | 4 | Point size in pixels (2-10) |
| borderRadius | number | 0 | Corner rounding for the chart area (0-32) |
| lineWidth | number | 2 | Stroke width for lines (1-5) |
| bgStyle | string | none | Background effect: none, dots, grid, snow |
| bg | string | #FFFFFF | Chart background: a hex color (with or without #), or transparent. Built into the chart itself, no CSS needed |
| bg2 | string | - | Second hex color: makes the background a top-to-bottom gradient from bg to bg2 |
| bgOpacity | number | 1 | Background opacity from 0 (invisible) to 1 (solid). Affects only the background, not the chart content |
| bgStyleColor | string | #94A3B8 | Hex color of the bgStyle pattern (dots, grid, snow) |
| colors | string | - | Comma-separated hex colors, with or without # (up to 20). Cycles when fewer colors than items. Overrides the theme palette |
| theme | string | - | Ready-made color theme: pastel, vivid, warm, cool, ocean, sunset, forest, mono, retro, dark. Explicit colors override the theme palette |
| customCSS | string | - | Custom CSS injected into the SVG |
| showValues | boolean | true | Show/hide data values on chart |
Examples
Point Styles
circlepointStyle=circle
squarepointStyle=square
starpointStyle=star
Background Styles
nonebgStyle=none
dotsbgStyle=dots
gridbgStyle=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
Pastel themetheme=pastel
Dark themetheme=dark
Border Radius
GET
/chart?type=bar&data=10,25,35,50&borderRadius=20&apikey=YOUR_KEY
ResultborderRadius=20
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