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

k_chart_plus_deeping 封面
套件詳情v1.0.2-5.2.2.3

k_chart_plus_deeping

用於交易所應用中繪製K線圖和深度圖的圖表庫,具備豐富經驗的軟體開發人員,歡迎透過 Telegram @sandaohaizi 聯繫我。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
103
喜歡數
120
Pub 分數
140

安裝套件

flutter pub add k_chart_plus_deeping

套件介紹

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

k_chart_plus_deeping 是一個專為建立進階金融圖表而設計的 Flutter 套件,包含適合交易所應用的蠟燭圖與深度圖。它提供流暢且可自訂的視覺化效果,並支援即時資料更新。專為有經驗的開發者打造,可無縫整合至跨多平台的交易或金融類應用中。該程式庫為開源,由一位歡迎透過 Telegram 合作的開發者維護。

適用情境

  • 交易平台介面
  • 加密貨幣交易所儀表板
  • 即時市場數據可視化
  • 財務分析工具
  • 投資組合追蹤應用程式

主要特色

  • K線圖渲染
  • 深度圖可視化
  • 跨平台相容性
  • 高效能渲染
  • 可自訂的主題和樣式
  • 即時資料串流支援

適合對象

  • 有經驗的 Flutter 開發人員
  • 金融與加密貨幣應用建構者
  • 交易所平台團隊
  • 數據可視化專家
  • 需要互動式圖表的應用程式

使用建議

  • 需要了解金融圖表概念
  • 最適合複雜的交易UI
  • 可能需要額外的狀態管理
  • 除了 GitHub 倉庫之外,文件有限
  • 需要 Telegram 聯繫人以取得直接支援

原始 README

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

K Chart Plus Package Deeping

简体中文 | English

Feature

2024-08-01 Update: Display double volume
2024-07-18 Update: Gesture zoom functionality | Scientific notation support
2024-07-17 Update: EMA indicator added
2024-07-16 Update: Skeleton screen functionality

Maybe this is the best k chart in Flutter.Support drag,scale,long press,fling.And easy to use.

Example1 Example2

Installation

First, add k_chart_plus as a dependency in your pubspec.yaml file.

k_chart_plus_deeping: ^1.0.0-tomo+2

If you don't want to support selecting multiple secondary states, you need to use:

flutter_k_chat_plus:
   git:
     url: https://github.com/sawwas/flutter_k_chat_plus
     ref: single #branch name

Usage

When you change the data, you must call this:

DataUtil.calculate(datas); //This function has some optional parameters: n is BOLL N-day closing price. k is BOLL param.
Use K line chart
KChartWidget(
    chartStyle, // Required for styling purposes
    chartColors,// Required for styling purposes
    datas,// Required,Data must be an ordered list,(history=>now)
    mBaseHeight: 360, //height of chart (not contain Vol and Secondary) 
    isLine: isLine,// Decide whether it is k-line or time-sharing
    mainState: _mainState,// Decide what the main view shows
    secondaryStateLi: _secondaryStateLi,// Decide what the sub view shows
    fixedLength: 2,// Displayed decimal precision
    timeFormat: TimeFormat.YEAR_MONTH_DAY,
    onLoadMore: (bool a) {},// Called when the data scrolls to the end. When a is true, it means the user is pulled to the end of the right side of the data. When a
    // is false, it means the user is pulled to the end of the left side of the data.
    maDayList: [5,10,20],// Display of MA,This parameter must be equal to DataUtil.calculate‘s maDayList
    volHidden: false,// hide volume
    showNowPrice: true,// show now price
    isOnDrag: (isDrag){},// true is on Drag.Don't load data while Draging.
    isTrendLine: false, // You can use Trendline by long-pressing and moving your finger after setting true to isTrendLine property. 
    xFrontPadding: 100 // padding in front
),
Use Depth chart
DepthChart(_bids, _asks, chartColors) //Note: Datas must be an ordered list,
Dark | Light Theme

ChartColor helped to set the color for the chart. You need to flexibly change according to your theme configuration to ensure UI.

If you need to apply multi theme, you need to change at least the colors related to the text, border, grid and background color

late ThemeData themeData = Theme.of(context);
late ChartColors chartColors = ChartColors(
  bgColor: themeData.colorScheme.background,
  defaultTextColor: themeData.textTheme.labelMedium?.color ?? Colors.grey,
  gridColor: themeData.dividerColor,
  hCrossColor: themeData.textTheme.bodyMedium?.color ?? Colors.white,
  vCrossColor: themeData.disabledColor.withOpacity(.1),
  crossTextColor: themeData.textTheme.bodyMedium?.color ?? Colors.white,
  selectBorderColor: themeData.textTheme.bodyMedium?.color ?? Colors.black54,
  selectFillColor: themeData.colorScheme.background,
  infoWindowTitleColor: themeData.textTheme.labelMedium?.color ?? Colors.grey,
  infoWindowNormalColor: themeData.textTheme.bodyMedium?.color ?? Colors.white,
);

Apply in k line chart:


KChartWidget(
    data,
    ChartStyle(),
    ChartColors().init(), ///custom chart color
    chartTranslations: ChartTranslations(
        date: 'Date'
        open: 'Open',
        high: 'High',
        low: 'Low',
        close: 'Close'
        changeAmount: 'Change',
        change: 'Change%',
        amount: 'Amount',
        vol: 'Volume',
    ),
    mBaseHeight: 360,
    isTrendLine: false,
    mainState: mainState,
    secondaryStateLi: secondaryStates,
    fixedLength: 2,
    timeFormat: TimeFormat.YEAR_MONTH_DAY,
);
Thanks

TrangLeQuynh/k_chart_plus

gwhcn/flutter_k_chart

OpenFlutter/k_chart

所屬分類

依賴

依賴清單 3 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。