start_chart 0.1.0 copy "start_chart: ^0.1.0" to clipboard
start_chart: ^0.1.0 copied to clipboard

outdated

A chart library for Flutter. Create beautiful charts using a simple and intuitive API.

Start Chart #

Start Chart is a simple charting package for web framework. There are good charting packages for Flutter mobile UI framework such as google charts. But, it lacks simple architecture for web framework. Also, it lacks candle charts with technical indicators.

Thus, I've made charting packages supporting web framework and candle charts.

demo

Example usage #

import 'package:flutter/material.dart';
import 'package:start_chart/start_chart.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {

  @override
  Widget build(BuildContext context) {

    return MaterialApp(
      title: 'Chart Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: ChartPage(),
      debugShowCheckedModeBanner: false,
    );
  }
}

class ChartPage extends StatelessWidget {
  List<double> points = [
    50, 90, 1003, 500, 150, 120, 200, 80
  ];

  List<String> labels = [
    "2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020"
  ];

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("Chart Page"),
      ),
      body: Container(
        padding: const EdgeInsets.symmetric(vertical: 8.0),
        child: Center(
          child: Column(
            children: <Widget>[
              LineChart(data: points),
              Padding(padding: const EdgeInsets.symmetric(vertical: 4.0)),
              PieChart(percentage: 55),
              Padding(padding: const EdgeInsets.symmetric(vertical: 8.0)),
              BarChart(data: points, labels : labels),
            ],
          ),
        ),
      ),
    );
  }
}

Bar

bar

Candle

candle

Line

line

Pie

pie

Credits #

MFW ( https://github.com/OpenFlutter/k_chart ).

Copyright (c) 2020 Benjamin Jung bsjung@gmail.com.

12
likes
25
pub points
21%
popularity

Publisher

unverified uploader

A chart library for Flutter. Create beautiful charts using a simple and intuitive API.

Repository (GitHub)
View/report issues

License

BSD-2-Clause (LICENSE)

Dependencies

flutter, meta

More

Packages that depend on start_chart