graphic_representation 0.0.5 graphic_representation: ^0.0.5 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.5
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.4),
nums: [1, 2, 5, 3, 7, 13, 7],
listGradX: [
"Lun",
"Mar",
"Mer",
"Jeu",
"Ven",
"Sam",
"Dim",
],
colorAxes: Colors.black,
nbGradY: 10,
colorPoint: Colors.blue,
colorLine: Colors.blue,
minY: 0,
maxY: 20,
)
DiscreteGraphic(
size: Size(MediaQuery.of(context).size.width,
MediaQuery.of(context).size.height * 0.4),
nums: [1, 2, 5, 3, 7, 13, 7],
listGradX: [
"Lun",
"Mar",
"Mer",
"Jeu",
"Ven",
"Sam",
"Dim",
],
colorAxes: Colors.black,
nbGradY: 10,
colorBox: Colors.red,
boxWidth: 15.0,
minY: 0,
maxY: 20,
)