Documentation Index
Fetch the complete documentation index at: https://mintlify.com/highcharts/highcharts/llms.txt
Use this file to discover all available pages before exploring further.
Responsive Configuration
The responsive options allow charts to adapt their configuration based on screen size or other conditions. This enables mobile-friendly, adaptive visualizations.Basic Structure
Responsive Rules
rules
Array of responsive rule objects
- condition - When to apply the rule
- chartOptions - Options to merge when condition is met
Condition Options
maxWidth
Maximum chart width (in pixels) for this rule to apply
minWidth
Minimum chart width (in pixels) for this rule to apply
maxHeight
Maximum chart height (in pixels) for this rule to apply
minHeight
Minimum chart height (in pixels) for this rule to apply
Combined Conditions
Custom Callback
Custom function that returns true when rule should apply
Chart Options
chartOptions
Chart configuration to merge when condition is met
Common Responsive Patterns
Mobile-First Design
Hide Elements on Small Screens
Adjust Spacing
Simplify for Performance
Responsive Text Sizing
Complete Example
Testing Responsive Behavior
Best Practices
- Mobile-First: Start with mobile configuration, enhance for larger screens
- Performance: Disable animations and complex features on small devices
- Readability: Increase font sizes, reduce clutter on small screens
- Touch-Friendly: Ensure adequate spacing for touch interactions
- Test Multiple Breakpoints: Cover phone, tablet, desktop sizes
- Progressive Enhancement: Add features as screen size increases
See Also
- Chart Options - Chart configuration
- Plot Options - Series defaults
- Chart Class - Reflow and resize methods