{"id":13790054,"url":"https://github.com/OpenFlutter/k_chart","last_synced_at":"2025-05-12T07:31:27.792Z","repository":{"id":35910994,"uuid":"215520696","full_name":"OpenFlutter/k_chart","owner":"OpenFlutter","description":"Maybe it is the best k chart in Flutter.","archived":false,"fork":false,"pushed_at":"2023-09-29T16:33:43.000Z","size":15716,"stargazers_count":469,"open_issues_count":24,"forks_count":229,"subscribers_count":15,"default_branch":"master","last_synced_at":"2024-11-18T04:35:38.175Z","etag":null,"topics":["chart","flutter","flutter-plugin","klinechart"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpenFlutter.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-10-16T10:26:45.000Z","updated_at":"2024-11-14T16:54:49.000Z","dependencies_parsed_at":"2024-04-02T11:04:57.908Z","dependency_job_id":null,"html_url":"https://github.com/OpenFlutter/k_chart","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenFlutter%2Fk_chart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenFlutter%2Fk_chart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenFlutter%2Fk_chart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenFlutter%2Fk_chart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenFlutter","download_url":"https://codeload.github.com/OpenFlutter/k_chart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253695130,"owners_count":21948818,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chart","flutter","flutter-plugin","klinechart"],"created_at":"2024-08-03T22:00:36.385Z","updated_at":"2025-05-12T07:31:23.743Z","avatar_url":"https://github.com/OpenFlutter.png","language":"Dart","funding_links":[],"categories":["Packages"],"sub_categories":[],"readme":"# k_chart\nMaybe this is the best k chart in Flutter.Support drag,scale,long press,fling.And easy to use.\n\n## display\n\n#### image\n\n\u003cimg src=\"https://github.com/mafanwei/k_chart/blob/master/example/images/Screenshot1.jpg\" width=\"375\" alt=\"Screenshot\"/\u003e\n\n\u003cimg src=\"https://github.com/mafanwei/k_chart/blob/master/example/images/Screenshot2.jpg\" width=\"375\" alt=\"Screenshot\"/\u003e\n\n\u003cimg src=\"https://github.com/mafanwei/k_chart/blob/master/example/images/Screenshot3.jpeg\" width=\"375\" alt=\"Screenshot\"/\u003e\n\n#### gif\n\n![demo](https://github.com/mafanwei/k_chart/blob/master/example/images/demo.gif)\n\n![demo](https://github.com/mafanwei/k_chart/blob/master/example/images/demo2.gif)\n\n## Getting Started\n#### Install\n```\ndependencies:\n  k_chart: ^0.7.1\n```\nor use latest：\n```\nk_chart:\n    git:\n      url: https://github.com/mafanwei/k_chart\n```\n#### Usage\n\n**When you change the data, you must call this:**\n```dart\nDataUtil.calculate(datas); //This function has some optional parameters: n is BOLL N-day closing price. k is BOLL param.\n```\n\nuse k line chart:\n```dart\nContainer(\n              height: 450,\n              width: double.infinity,\n              child: KChartWidget(\n                chartStyle, // Required for styling purposes\n                chartColors,// Required for styling purposes\n                datas,// Required，Data must be an ordered list，(history=\u003enow)\n                isLine: isLine,// Decide whether it is k-line or time-sharing\n                mainState: _mainState,// Decide what the main view shows\n                secondaryState: _secondaryState,// Decide what the sub view shows\n                fixedLength: 2,// Displayed decimal precision\n                timeFormat: TimeFormat.YEAR_MONTH_DAY,\n                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\n                // is false, it means the user is pulled to the end of the left side of the data.\n                maDayList: [5,10,20],// Display of MA,This parameter must be equal to DataUtil.calculate‘s maDayList\n                translations: kChartTranslations,// Graphic language\n                volHidden: false,// hide volume\n                showNowPrice: true,// show now price\n                isOnDrag: (isDrag){},// true is on Drag.Don't load data while Draging.\n                onSecondaryTap:(){},// on secondary rect taped.\n                isTrendLine: false, // You can use Trendline by long-pressing and moving your finger after setting true to isTrendLine property. \n                xFrontPadding: 100 // padding in front\n              ),\n            ),\n```\nuse depth chart:\n```dart\nDepthChart(_bids, _asks, chartColors) //Note: Datas must be an ordered list，\n```\n\n#### Donate\n\nBuy a cup of coffee for the author.\n\n\u003cimg src=\"https://img-blog.csdnimg.cn/20181205161540134.jpg?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3F3ZTI1ODc4,size_16,color_FFFFFF,t_70\" width=\"375\" alt=\"alipay\"/\u003e\n\u003cimg src=\"https://img-blog.csdnimg.cn/20181205162201519.jpg?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3F3ZTI1ODc4,size_16,color_FFFFFF,t_70\" width=\"375\" alt=\"wechat\"/\u003e\n\n#### Thanks\n[gwhcn/flutter_k_chart](https://github.com/gwhcn/flutter_k_chart)\n\n#### Other\nMaybe there are some bugs in this k chart,or you want new indicators,you can create a pull request.I will happy to accept it and I hope we can make it better.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOpenFlutter%2Fk_chart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FOpenFlutter%2Fk_chart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOpenFlutter%2Fk_chart/lists"}