{"id":13573569,"url":"https://github.com/trentpiercy/flutter-candlesticks","last_synced_at":"2025-04-05T03:06:50.276Z","repository":{"id":31777357,"uuid":"128863993","full_name":"trentpiercy/flutter-candlesticks","owner":"trentpiercy","description":"Elegant OHLC Candlestick and Trade Volume charts for @Flutter","archived":false,"fork":false,"pushed_at":"2022-02-12T06:19:44.000Z","size":310,"stargazers_count":430,"open_issues_count":14,"forks_count":91,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-03-29T02:04:07.427Z","etag":null,"topics":["candlesticks","chart","finance","financial-data","flutter","graph"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/flutter_candlesticks","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trentpiercy.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}},"created_at":"2018-04-10T02:48:00.000Z","updated_at":"2025-01-24T06:33:16.000Z","dependencies_parsed_at":"2022-08-07T16:31:01.255Z","dependency_job_id":null,"html_url":"https://github.com/trentpiercy/flutter-candlesticks","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/trentpiercy%2Fflutter-candlesticks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trentpiercy%2Fflutter-candlesticks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trentpiercy%2Fflutter-candlesticks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trentpiercy%2Fflutter-candlesticks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trentpiercy","download_url":"https://codeload.github.com/trentpiercy/flutter-candlesticks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247280263,"owners_count":20912967,"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":["candlesticks","chart","finance","financial-data","flutter","graph"],"created_at":"2024-08-01T15:00:37.761Z","updated_at":"2025-04-05T03:06:50.256Z","avatar_url":"https://github.com/trentpiercy.png","language":"Dart","funding_links":[],"categories":["组件","Components","Charts [🔝](#readme)"],"sub_categories":["图表","Map","Charts"],"readme":"[![pub package](https://img.shields.io/pub/v/flutter_candlesticks.svg)](https://pub.dartlang.org/packages/flutter_candlesticks)\n\n# flutter_candlesticks\n\nElegant OHLC Candlestick and Trade Volume charts for Flutter\n\n## Usage\n\nInstall for Flutter [with pub](https://pub.dartlang.org/packages/flutter_candlesticks#-installing-tab-).\n\n| Property           | Description                                                              |\n|--------------------|--------------------------------------------------------------------------|\n| data               | Required. List of maps containing open, high, low, close and volumeto    |\n| enableGridLines    | Required. Enable or disable grid lines                                   |\n| volumeProp         | Required. Proportion of container to be given to volume bars             |\n| lineWidth          | Default `1.0`. Width of most lines                                       |\n| gridLineAmount     | Default `5`. Number of grid lines to draw. Labels automatically assigned |\n| gridLineWidth      | Default `0.5`. Width of grid lines                                       |\n| gridLineColor      | Default `Colors.grey`. Color of grid lines                               |\n| gridLineLabelColor | Default `Colors.grey`. Color of grid line labels                         |\n| labelPrefix        | Default `\"$\"`. Prefix before grid line labels.                           |\n| increaseColor      | Default `Colors.green`. Color of increasing candles.                     |\n| decreaseColor      | Default `Colors.red`. Color of decreasing candles.                       |\n\n## Examples\n\n### No Grid Lines\n\n```dart\nnew OHLCVGraph(\n    data: sampleData,\n    enableGridLines: false,\n    volumeProp: 0.2\n    )\n)\n```\n\n\u003cimg src=\"https://raw.githubusercontent.com/trentpiercy/flutter-candlesticks/master/screenshots/white_large.png\" width=\"50%\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/trentpiercy/flutter-candlesticks/master/screenshots/dark_large.png\" width=\"50%\"\u003e\n\n\u003e Candle size dynamically changes by amount of data\n\n\u003cimg src=\"https://raw.githubusercontent.com/trentpiercy/flutter-candlesticks/master/screenshots/white_small.png\" width=\"50%\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/trentpiercy/flutter-candlesticks/master/screenshots/dark_small.png\" width=\"50%\"\u003e\n\n\n### Grid Lines\n\n```dart\nnew OHLCVGraph(\n    data: sampleData,\n    enableGridLines: true,\n    volumeProp: 0.2,\n    gridLineAmount: 5,\n    gridLineColor: Colors.grey[300],\n    gridLineLabelColor: Colors.grey\n    )\n)\n```\n\n\u003cimg src=\"https://raw.githubusercontent.com/trentpiercy/flutter-candlesticks/master/screenshots/white_small_gridlines.png\" width=\"50%\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/trentpiercy/flutter-candlesticks/master/screenshots/dark_large_gridlines.png\" width=\"50%\"\u003e\n\n### Full App Example\n```dart\nimport 'package:flutter/material.dart';\nimport 'package:flutter_candlesticks/flutter_candlesticks.dart';\n\nvoid main() {\n  List sampleData = [\n    {\"open\":50.0, \"high\":100.0, \"low\":40.0, \"close\":80, \"volumeto\":5000.0},\n    {\"open\":80.0, \"high\":90.0, \"low\":55.0, \"close\":65, \"volumeto\":4000.0},\n    {\"open\":65.0, \"high\":120.0, \"low\":60.0, \"close\":90, \"volumeto\":7000.0},\n    {\"open\":90.0, \"high\":95.0, \"low\":85.0, \"close\":80, \"volumeto\":2000.0},\n    {\"open\":80.0, \"high\":85.0, \"low\":40.0, \"close\":50, \"volumeto\":3000.0},\n  ];\n\n  runApp(\n    new MaterialApp(\n      home: new Scaffold(\n        body: new Center(\n          child: new Container(\n            height: 500.0,\n            child: new OHLCVGraph(\n                data: sampleData,\n                enableGridLines: false,\n                volumeProp: 0.2\n            ),\n          ),\n        ),\n      )\n    )\n  );\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrentpiercy%2Fflutter-candlesticks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrentpiercy%2Fflutter-candlesticks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrentpiercy%2Fflutter-candlesticks/lists"}