How can i make a flutter graph like this where for any kind of graph(7D,30D,1Y) background grid will be same ?
Here is my current code:
primaryYAxis: NumericAxis(
plotBands: <PlotBand>[
PlotBand(
verticalTextPadding: '0%',
horizontalTextPadding: '0%',
text: widget.fromVault == true ? 'AP' : "",
textAngle: 0,
start: widget.fromVault == true ? double.parse(detailsAp!) : 0,
end: widget.fromVault == true ? double.parse(detailsAp!) : 0,
textStyle: TextStyle(color: AppColors.textColor.withOpacity(.5), fontSize: 8),
horizontalTextAlignment: TextAnchor.end,
borderColor: widget.fromVault == true ? const Color(0xff5A0FD8) : AppColors.graphCard,
borderWidth: 1.5,
)
],
decimalPlaces: 2,
numberFormat: NumberFormat.compact(),
interactiveTooltip: const InteractiveTooltip(
enable: false,
),
axisBorderType: AxisBorderType.withoutTopAndBottom,
borderWidth: 0,
axisLine: const AxisLine(width: 0),
majorGridLines: MajorGridLines(
width: 1,
color: AppColors.textColor.withOpacity(.1),
),
minorGridLines: MinorGridLines(
width: 1,
color: AppColors.textColor.withOpacity(.1),
),
majorTickLines: const MajorTickLines(width: 0),
//labelIntersectAction: AxisLabelIntersectAction.hide,
labelRotation: 0,
labelStyle: TextStyle(
color: AppColors.textColor,
fontFamily: 'Inter',
fontSize: 7.sp,
fontStyle: FontStyle.italic,
fontWeight: FontWeight.w900),
labelAlignment: LabelAlignment.center,
maximumLabelWidth: 40,
maximum: double.parse(detailsAp!) > double.parse(data.oneDayGraphModel!.floorPrice!)
? double.parse(detailsAp!) + (double.parse(detailsAp!)*.1)
: null,
),
Thanks in advance.