linegraph method
Implementation
pw.LineDataSet linegraph(
PdfColor baseColor, List<int> yAxis, List<int> xAxis) {
return pw.LineDataSet(
drawSurface: true,
isCurved: true,
drawPoints: true,
pointSize: 2.5,
color: baseColor,
data: List<pw.LineChartValue>.generate(
yAxis.length,
(i) {
final v = yAxis[i] as num;
return pw.LineChartValue(xAxis[i].toDouble(), v.toDouble());
},
),
);
}