Skip to content

Conversation

@skokenes
Copy link
Contributor

@skokenes skokenes commented Jul 18, 2025

Summary

Exposes the viz size property in bar and line plugin settings

Changes

  • Added size property to BarChartSettings and LineChartSettings interfaces
  • Updated JSON Schema definitions for both chart types to include size validation
  • Implemented size tag parsing in getBarChartSettings and getLineChartSettings functions
  • Integration with existing chart layout infrastructure (no changes needed to vega spec generators)

Usage

Users can now specify chart sizes in two ways:

  1. Preset sizes: xs, sm, md, lg, xl, 2xl

    # viz=bar { size=lg }
    
  2. Custom dimensions: specific width and height values

    # viz=line { size.width=400 size.height=200 }
    

Test plan

  • All existing tests pass
  • Build completes successfully
  • Linting passes
  • Manual testing with example queries using the new size property

Adds support for the size property in bar and line chart visualization tags.
Users can now specify chart sizes using either presets or custom dimensions:
- Preset sizes: xs, sm, md, lg, xl, 2xl (e.g., # viz=bar { size=lg })
- Custom dimensions: width and height (e.g., # viz=line { size.width=400 size.height=200 })

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@skokenes skokenes changed the title feat(render): add size property to bar and line chart plugins feat: add size property to bar and line chart plugins Jul 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants