Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(flet-charts): RadarChart#5712

Merged
FeodorFitsner merged 14 commits intomainfrom
radar-chart
Oct 16, 2025
Merged

feat(flet-charts): RadarChart#5712
FeodorFitsner merged 14 commits intomainfrom
radar-chart

Conversation

@ndonkoHenri
Copy link
Contributor

@ndonkoHenri ndonkoHenri commented Oct 15, 2025

Summary by Sourcery

Add a full-fledged RadarChart feature to the flet-charts package, including data set and title controls, Flutter rendering, event support, documentation, and examples, while improving border validation and candlestick chart properties.

New Features:

  • Introduce RadarChart control with supporting RadarDataSet, RadarDataSetEntry, RadarChartTitle, and RadarShape enums
  • Implement radar chart rendering and interaction in both Python and Flutter layers with event handling and examples

Enhancements:

  • Enforce non-negative BorderSide width with ValueError and improve related docstrings
  • Rename CandlestickChart property handle_built_in_touches to show_tooltips_for_selected_spots_only and update tooltip defaults (bgcolor, border radius, touch threshold)
  • Update mkdocs navigation and README to include RadarChart in the charts section
  • Extend isort configuration to recognize flet-charts and other new extension packages

@ndonkoHenri ndonkoHenri requested a review from Copilot October 15, 2025 09:23
Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've reviewed this pull request using the Sourcery rules engine

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a new RadarChart control to the flet-charts package, expanding the available chart types with radar/spider chart functionality. The implementation includes both Python API components and Flutter visualization logic, along with comprehensive documentation and examples.

  • Adds RadarChart with customizable data sets, titles, and styling options
  • Implements supporting classes for radar data management and events
  • Updates documentation structure and examples to include the new chart type

Reviewed Changes

Copilot reviewed 28 out of 29 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
sdk/python/pyproject.toml Expands known-first-party packages list for proper import sorting
sdk/python/packages/flet/src/flet/controls/border.py Improves documentation formatting and error handling consistency
sdk/python/packages/flet/mkdocs.yml Reorganizes navigation structure and adds RadarChart documentation entries
sdk/python/packages/flet-charts/src/flutter/flet_charts/lib/src/utils/radar_chart.dart Implements Flutter utilities for radar chart parsing and event handling
sdk/python/packages/flet-charts/src/flutter/flet_charts/lib/src/radar_chart.dart Core Flutter implementation of the RadarChart control
sdk/python/packages/flet-charts/src/flet_charts/radar_chart.py Python API for RadarChart with validation and configuration options
sdk/python/packages/flet-charts/src/flet_charts/radar_data_set.py Data structures for radar chart entries and datasets
sdk/python/examples/controls/charts/radar_chart/example_1.py Comprehensive example demonstrating RadarChart usage

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Oct 15, 2025

Deploying flet-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6b5df1e
Status: ✅  Deploy successful!
Preview URL: https://e9f2412d.flet-docs.pages.dev
Branch Preview URL: https://radar-chart.flet-docs.pages.dev

View logs

ndonkoHenri and others added 7 commits October 15, 2025 11:56
Added 3D, animated, and event-handling chart examples to the Matplotlib chart examples directory. Renamed example files for clarity, updated associated media images, and removed unused images. Enhanced MatplotlibChart class with docstrings and refactored resize handler. Updated documentation to include new examples and images, and adjusted mkdocs.yml to improve API documentation filtering.
Refactored MatplotlibChart, MatplotlibChartWithToolbar, and PlotlyChart to gracefully handle missing optional dependencies by deferring import errors and providing clearer error messages. Added runtime checks to ensure required packages are installed before usage, improving robustness and user experience.
The _require_plotly() call was moved from before_update() to the init() method to ensure plotly is available during initialization rather than before updates.
Moved the call to _require_matplotlib() from build() to a new init() method in MatplotlibChart. This separates initialization from build logic for better code organization.
@FeodorFitsner FeodorFitsner merged commit 2c4edee into main Oct 16, 2025
37 of 51 checks passed
@FeodorFitsner FeodorFitsner deleted the radar-chart branch October 16, 2025 16:46
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.

3 participants