chart_sparkline 1.0.6 copy "chart_sparkline: ^1.0.6" to clipboard
chart_sparkline: ^1.0.6 copied to clipboard

outdated

Beautiful sparkline charts for Flutter.Average line, highest and lowest value.

example/lib/main.dart

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

void main() {
  runApp(
    MaterialApp(
      home: Scaffold(
        body: Center(
          child: Container(
            width: 600.0,
            height: 250.0,
            child: Sparkline(
              data: [-1.5, 1 - 0, 2 - 5, -1.5, 2, 5, -2.3],
              // backgroundColor: Colors.red,
              // lineColor: Colors.lightGreen[500]!,
              // fillMode: FillMode.below,
              // fillColor: Colors.lightGreen[200]!,
              // pointsMode: PointsMode.all,
              // pointSize: 5.0,
              // pointColor: Colors.amber,
              // useCubicSmoothing: true,
              // lineWidth: 1.0,
              // gridLinelabelPrefix: '\$',
              // gridLineLabelPrecision: 3,
              // enableGridLines: true,
              averageLine: true,
              averageLable: true,
              // kLine: ['max', 'min', 'first', 'last'],
              // // max: 50.5,
              // // min: 10.0,
              // enableThreshold: true,
              // thresholdSize: 0.1,
              // lineGradient: LinearGradient(
              //   begin: Alignment.topCenter,
              //   end: Alignment.bottomCenter,
              //   colors: [Colors.purple[800]!, Colors.purple[200]!],
              // ),
              // fillGradient: LinearGradient(
              //   begin: Alignment.topCenter,
              //   end: Alignment.bottomCenter,
              //   colors: [Colors.red[800]!, Colors.red[200]!],
              // ),
            ),
          ),
        ),
      ),
    ),
  );
}
103
likes
0
pub points
95%
popularity

Publisher

verified publisherdev.sumsg.com

Beautiful sparkline charts for Flutter.Average line, highest and lowest value.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on chart_sparkline