搜尋套件、儲存庫與 APP 分類

flutter_radar_chart 封面
套件詳情v0.2.1

flutter_radar_chart

適用於 Flutter 的基本雷達圖。此圖表旨在開箱即用,能根據給定資料自動調整。圖表設計靈感來自 Python Graph Gallery。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
1730
喜歡數
101
Pub 分數
140

安裝套件

flutter pub add flutter_radar_chart

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個簡單、自動調整的雷達圖,適用於 Flutter,設計用於與提供的資料無縫配合。靈感來自 Python Graph Gallery,提供乾淨直覺的多維資料視覺化。此圖表會自動縮放並適應輸入值,非常適合快速實作而無需複雜設定。適用於跨多個平台的儀表板、效能比較及資料分析介面。

適用情境

  • 效能指標可視化
  • 多維數據比較
  • 儀表板小部件
  • 應用中的資料分析
  • 教育工具

主要特色

  • 基於資料的自動縮放
  • 所需的設定最少
  • 跨平台支援
  • 簡潔現代的設計
  • 響應式佈局

適合對象

  • 尋求快速雷達圖的開發者
  • 儀表板中的資料視覺化
  • 教育或分析應用
  • 具有多軸數據的應用程式
  • 需要輕量級圖表的項目

使用建議

  • 有限的自訂選項
  • 最適合小型到中型資料集
  • 不適合高度互動的圖表
  • 無內建的提示工具或動畫
  • 依賴外部函式庫以實現進階功能

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

flutter_radar_chart

Animated radar chart for Flutter inspired by The Python Graph Gallery (https://python-graph-gallery.com/radar-chart/).

Follow the instructions on pub to install this package.

Example

screenshot

Usage

Basic usage of radar chart requires three pieces of data:

  • ticks - Defines the numerical axis for the chart. Each tick generates an outline. Currently, each feature is plotted using the numerical range define by the ticks.
  • features - Defines the numerical variables for each individual in the chart. There is no limit to the number of features.
  • data - List of data points used to construct each individual in the chart. The number of data points must match the number of features. There is no limit to the number of individuals in the chart; however, multiple entities might cause the graph to become unreadable.
RadarChart.light(
    ticks: ticks,
    features: features,
    data: data,
),

A full example (as seen in the screenshots) can be found in example/lib/main.dart

Customizability

Most of the customizability of the graph is a work in progress, but here's some of the features of the chart:

  • Animations! Trying to add some life to the chart. Animation is currently triggered whenever the widget is updated (didUpdateWidget). Animations are currently enabled by default.
  • Number of features: As shown in the example, the radar chart will adjust to the number of given variables. More work is needed to ensure the chart doesn't explode when given invalid data.
  • Reverse axis: Reverses the axis range so that the min value starts at the graph outline.
  • Dark mode: Simple factory that showcases the color customizability of the chart.
  • Polygon sides: Ability to use flat polygon borders instead of a circular border.

screenshot

Future Work Ideas

There's a few more areas of work that I'd love to get around to building. I will eventually move these items over to issues for better tracking.

  • [ ] Option for round corners
  • [x] Animations on render
  • [ ] Integration testing
  • [ ] Responsive design
  • [ ] Legends

Acknowledgements

所屬分類

原始碼儲存庫

使用此套件的專案