|
|
|
@ -225,7 +225,7 @@ class _TradingState extends State<Trading> { |
|
|
|
"${titlelist["2. From Symbol"]}/${titlelist["3. To Symbol"]}"), |
|
|
|
//legend: const Legend(isVisible: true), |
|
|
|
//trackballBehavior: _trackballBehavior, |
|
|
|
series: <ChartSeries>[ |
|
|
|
series: <CartesianSeries>[ |
|
|
|
AreaSeries<Modeltradenet, DateTime>( |
|
|
|
borderColor: const Color(0xFF6334A9), |
|
|
|
borderWidth: 1, |
|
|
|
@ -233,7 +233,6 @@ class _TradingState extends State<Trading> { |
|
|
|
dataSource: chartDatatrade, |
|
|
|
xValueMapper: (Modeltradenet sales, _) => sales.date, |
|
|
|
yValueMapper: (Modeltradenet sales, _) => sales.close, |
|
|
|
|
|
|
|
// lowValueMapper: (Modeltradenet sales, _) => sales.low, |
|
|
|
// highValueMapper: (Modeltradenet sales, _) => sales.high, |
|
|
|
// openValueMapper: (Modeltradenet sales, _) => sales.open, |
|
|
|
@ -246,20 +245,16 @@ class _TradingState extends State<Trading> { |
|
|
|
xValueMapper: (Modeltradenet sales, _) => sales.date, |
|
|
|
yValueMapper: (Modeltradenet sales, _) => sales.close, |
|
|
|
markerSettings: MarkerSettings( |
|
|
|
isVisible: true, // Afficher les marqueurs |
|
|
|
shape: DataMarkerType |
|
|
|
.horizontalLine, // Forme du marqueur (circle, square, etc.) |
|
|
|
color: const Color(0xFF6334A9) |
|
|
|
.withOpacity(0.5), // Couleur des marqueurs |
|
|
|
width: 1000, // Largeur des marqueurs |
|
|
|
isVisible: true, |
|
|
|
shape: DataMarkerType.horizontalLine, |
|
|
|
color: const Color(0xFF6334A9).withOpacity(0.5), |
|
|
|
width: 1000, |
|
|
|
), |
|
|
|
dataLabelSettings: const DataLabelSettings( |
|
|
|
offset: Offset(-50, 25), |
|
|
|
useSeriesColor: true, |
|
|
|
borderWidth: 2, |
|
|
|
borderColor: Color(0xFF6334A9), |
|
|
|
// connectorLineSettings: ConnectorLineSettings( |
|
|
|
// width: 2, color: Colors.red, type: ConnectorType.curve), |
|
|
|
isVisible: true, |
|
|
|
alignment: ChartAlignment.center, |
|
|
|
labelAlignment: ChartDataLabelAlignment.bottom, |
|
|
|
@ -272,14 +267,12 @@ class _TradingState extends State<Trading> { |
|
|
|
xValueMapper: (Modeltradenet sales, _) => sales.date, |
|
|
|
yValueMapper: (Modeltradenet sales, _) => sales.close, |
|
|
|
markerSettings: MarkerSettings( |
|
|
|
isVisible: true, // Afficher les marqueurs |
|
|
|
shape: DataMarkerType |
|
|
|
.circle, // Forme du marqueur (circle, square, etc.) |
|
|
|
color: Colors.white |
|
|
|
.withOpacity(0.5), // Couleur des marqueurs |
|
|
|
width: 4, // Largeur des marqueurs |
|
|
|
isVisible: true, |
|
|
|
shape: DataMarkerType.circle, |
|
|
|
color: Colors.white.withOpacity(0.5), |
|
|
|
width: 4, |
|
|
|
), |
|
|
|
) |
|
|
|
), |
|
|
|
], |
|
|
|
primaryXAxis: DateTimeAxis( |
|
|
|
maximum: DateTime.now().add(const Duration(minutes: 15)), |
|
|
|
|