chartaxis method
Implementation
pw.CartesianGrid chartaxis(List<int> xAxis, String filterXaxis(int time)) {
return pw.CartesianGrid(
xAxis: pw.FixedAxis(xAxis,
format: (axisvalue) => filterXaxis(axisvalue as int),
divisions: false),
yAxis: pw.FixedAxis(
[0, 30, 60, 90, 120],
textStyle: pw.TextStyle(fontSize: 8),
format: (axisvalue) => '$axisvalue\%',
divisions: false,
),
);
}