Giter Site home page Giter Site logo

candlesticks's Introduction

candlesticks

pub package

A flutter candlesticks chart for android, ios and the web; It contains optimized animations, indicators (soon) and socket connection ability.

Gif

Installation

  1. Add this to your package's pubspec.yaml file:
dependencies:
  candlesticks: ^1.1.0
  1. Get the package using your IDE's GUI or via command line with
$ flutter pub get

Usage

import 'package:candlesticks/candlesticks.dart';

Candle

[Candle] class contains six required variables that hold a single candle data: date, high, low, open, close and volume. It can be instantiated using its default constructor or fromJson named custructor.

final candle =  Candle(date: DateTime.now(), open: 1780.36, high: 1873.93, low: 1755.34, close: 1848.56, volume: 0);

Candlesticks

[Candlesticks] widget requires a list of candles, current interval as String and onIntervalChange callback. And that's it. It is recommended to wrap [Candlesticks] with the [AspectRatio] widget.

Note

If you want your chart to updates with every price tick, you can use the Binance socket API as provided in the example.

candlesticks's People

Contributors

r-mzy47 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.