appearance.border allow you to customize the style, width and color of borders around your graphs. You can create subtle strokes, bold frames, gradient effects or completely custom border styles.
Quick start
Borders are controlled by three properties that work together:Border width
Control the thickness of your border usingwidth. Set to 0 to remove the border completely.
Border width in pixels (0-64). Set to
0 for no border.Border styles
Usestyle to control how your border appears. Each style treats color differently, helping frame your data without stealing the spotlight:
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'grey'- Legacy grey border style
Tinted
A color border that’s subtly tinted based on your chosen color and the graph’s theme:Gradient
Automatically generates a linear gradient based on your chosen color and the graph’s theme:Grey
A neutral border that adapts to light and dark themes. Perfect for subtle definition without drawing attention:Preset
Use one of twelve predefined gradient styles. Setcolor to one of these preset names:
'lilac'- Soft purple to pink'neon_pink'- Vibrant pink gradient'blackberry'- Purple to light blue'sun'- Yellow to orange'iceland'- Teal gradient'sunset'- Yellow to pink'ultraviolet'- Purple gradient'purple'- Rich purple tones'ice_cream'- Pink to peach'mint'- Green to cyan'cool'- Blue to cyan'fresh'- Purple to cyan
Custom
Use your exact color with no adjustments. Unliketinted and gradient, custom applies your color as-is with no theme-based tinting:
Border colors
The color to use for the border. Accepts:
- Hex colors:
"#3b82f6","#ff6b6b" - Preset names (when
style: 'preset'):"lilac","sunset","ultraviolet", etc. - Series references:
"series1","series2"(uses color from series styles)
style for optimal visual appearance.Hex colors
Standard hex color values work withtinted, gradient and custom styles:
Preset names
When usingstyle: 'preset', reference one of the predefined gradients:
Series references
Match your border to a series color by referencing the series key:Rounded corners
Whether to round the corners of the border. Ignored if
border.width is 0.