Skip to content

feat: add RadarChart component for spider/radar visualizations#3278

Open
wrathagom wants to merge 4 commits intoevidence-dev:mainfrom
wrathagom:feat/radar-chart
Open

feat: add RadarChart component for spider/radar visualizations#3278
wrathagom wants to merge 4 commits intoevidence-dev:mainfrom
wrathagom:feat/radar-chart

Conversation

@wrathagom
Copy link

Description

Adds a new RadarChart component for creating radar/spider chart visualizations in Evidence. This follows the Sankey pattern (direct ECharts config) rather than the LineChart/AreaChart pattern, because radar charts use a different coordinate system (radar) instead of cartesian axes.

Files added:

  • RadarChart.svelte - Wrapper component with QueryLoad for data handling
  • InnerRadarChart.svelte - Inner component that builds ECharts radar config directly
  • sites/example-project/src/pages/charts/radar-chart/+page.md - Comprehensive examples page

Key features:

  • Supports single and multiple y columns
  • Supports series column for multiple radar overlays
  • Auto-calculates indicator max values (1.1x the max data value) or accepts custom max prop
  • Supports shape prop for polygon or circle radar shapes
  • Includes standard styling props: fillColor, fillOpacity, lineColor, lineWidth, markers, labels

Architecture choice: Uses Sankey pattern (direct ECharts) instead of Chart wrapper. This was necessary because radar charts don't use xAxis/yAxis.

View demo video (rec-ea8665f22ce34681beef578345c8090e-edited.mp4)

Checklist

  • For UI or styling changes, I have added a screenshot or gif showing before & after
  • I have added a changeset
  • I have added to the docs where applicable
  • I have added to the VS Code extension where applicable

devin-ai-integration bot and others added 4 commits February 9, 2026 15:00
Co-Authored-By: Caleb Keller <calebmkeller@gmail.com>
- Rewrote RadarChart to follow the Sankey pattern with direct ECharts config
- Renamed inner component to InnerRadarChart.svelte
- Removed old Radar.svelte that used Chart wrapper (incompatible with radar coordinate system)
- Fixed lint errors and formatting

Co-Authored-By: Caleb Keller <calebmkeller@gmail.com>
- Moved from chart-testing to charts folder (alongside other chart docs)
- Added 15+ examples demonstrating all RadarChart features:
  - Basic single series radar
  - Multi-series comparison (Team A vs Team B)
  - Three-way product comparison
  - Circle shape vs polygon
  - Custom max value for consistent scaling
  - Fill opacity (high vs low)
  - Line width customization
  - Markers with custom size
  - Data labels showing values
  - Custom colors (fillColor, lineColor)
  - Color palette for multi-series
  - Combined styling options
  - Chart height customization
- Each example includes clear description of what the prop does

Co-Authored-By: Caleb Keller <calebmkeller@gmail.com>
Co-Authored-By: Caleb Keller <calebmkeller@gmail.com>
@wrathagom wrathagom requested a deployment to Approval required to run action on external PR February 9, 2026 20:02 — with GitHub Actions Waiting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments