histogramNegativeColor property

Color histogramNegativeColor
final

Histogram negative color of the macd indicator.

Defaults to Colors.red.

Widget build(BuildContext context) {
 return SfCartesianChart(
   indicators: <TechnicalIndicator<Sample, num>>[
     MacdIndicator<Sample, num>(
       seriesName: 'Series1',
       macdType: MacdType.histogram,
       histogramNegativeColor: Colors.green
     ),
   ],
   series: <CartesianSeries<Sample, num>>[
     HiloOpenCloseSeries<Sample, num>(
       name: 'Series1'
     )
   ]
 );
}

Implementation

final Color histogramNegativeColor;