histogramPositiveColor property Null safety

Color histogramPositiveColor
final

Histogram positive color of the macd indicator.

Defaults to Colors.green.

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

Implementation

final Color histogramPositiveColor;