graphic_representation 0.0.8 graphic_representation: ^0.0.8 copied to clipboard
easy graphic representation, using classes likes DiscreteGraphic for example. You can easily adapt your graphic with your android or ios device screen.
graphic_representation #
Easy graphic representation This package will allow you to make graphic representations very quickly with Flutter
Installation #
In the dependencies: section of your `pubspec.yaml, add the following line:
dependencies:
graphic_representation: ^0.0.8
Usage #
Import this class :
import 'package:graphic_representation/graphic_representation.dart';
Example #
DiscreteGraphic(
size: Size(MediaQuery.of(context).size.width,
MediaQuery.of(context).size.height * 0.35),
nums: [1, 2, 5, 3, 7, 13, 7],
listGradX: [
"Lun",
"Mar",
"Mer",
"Jeu",
"Ven",
"Sam",
"Dim",
],
colorAxes: Colors.black,
colorLine: Colors.blue,
strokeLine : 2.0,
colorPoint: Colors.blue,
radiusPoint: 3.0,
nbGradY: 9,
minY: 0,
maxY: 16,
)
DiscreteGraphic(
size: Size(MediaQuery.of(context).size.width,
MediaQuery.of(context).size.height * 0.35),
nums: [3.2, 2.2, 7.1, 12.7, 14.9, 18, 19.8,21.8,19.7,14.3,9.4,5.1],
listGradX: [
"J",
"F",
"M",
"A",
"M",
"J",
"J",
"A",
"S",
"O",
"N",
"D"
],
colorAxes: Colors.black,
nbGradY: 14,
colorBox: Colors.red,
boxWidth: 10.0,
minY: 0,
maxY: 26,
)