Color palettes
Using a palette
ID of a palette from the
customPalettes array registered with GraphProvider. This determines which colors are used for series in your chart.For details on creating custom palettes, see custom color palettes.
Inline palette
Inline custom palette definition. Takes precedence over
paletteId.Series styles
Customize individual data series with specific colors, fill styles and line styles.Map of series keys to style configurations.
Series style properties
Color ID from the active palette to use for this series. If not set, the series uses the nth color in the palette.
Custom hex color for the series. Takes precedence over
paletteColorId.Fill style for area and bar charts. Use
'hatched' for a diagonal line pattern.Line style for line charts.
Single color mode
When
true, all bars in a categorical bar/column graph will use the same color (from the first series style or palette color). Only applies to categorical bar/column graphs with a single series.Borders
Configure the border around the chart.
Border style:
'none'- No border'custom'- Apply the custom hex color fromcoloras-is'tinted'- Tint thecolorbased on the color scheme (darkens in dark mode, lightens in light mode)'gradient'- Generate a gradient starting fromcolor, adjusted based on the color scheme'preset'- Use a predefined border style (see borders for preset names)'grey'- Legacy grey border style
Border color. If
style is 'preset', this is the name of the preset. Ignored if style is 'none'.Border stroke width in pixels (0-64). Set to
0 for no border.Rounded corners
Whether to round the corners of the border. Ignored if border width is 0.
Background
Graph background modifier. The background color is set on your theme (see GraphTheme).If
backgroundModifier is 'tint', the background will be tinted by mixing graphBackground with the first color in the palette.Text styles
Customize text appearance for headings and body text.
Text style for titles and headings.
Text style for body text, labels, legends and annotations.
Text scale
Text scale multiplier (0.5-5). Increase to make all text larger, decrease to make it smaller.
1 is the default size.Number formatting
Configure how numbers are formatted in charts and tooltips.
Number of decimal places to show (0-10). Use
'auto' to automatically determine optimal precision.How to abbreviate large numbers:
'none'- Show the full number'auto'- Automatically choose the appropriate abbreviation'k'- Thousands (1,000 → 1k)'m'- Millions (1,000,000 → 1m)'b'- Billions (1,000,000,000 → 1b)
Highlight style
How non-selected items appear when hovering over or highlighting data:
'grey'- Grey out non-selected items'fade-color'- Fade the color of non-selected items
Tooltips
Whether to show tooltips on hover. When
false, tooltips are completely disabled.Animations
Whether to animate the graph on initial render and when data or config changes. Set to
false to disable all animations.Logo visibility
Whether to hide the Graphy logo. Defaults to
false.