fromStrings static method
FixedAxis<int>
fromStrings(
- List<
String> values, { - TextStyle? textStyle,
- double? margin,
- double? marginStart,
- double? marginEnd,
- PdfColor? color,
- double? width,
- bool? divisions,
- double? divisionsWidth,
- PdfColor? divisionsColor,
- bool? divisionsDashed,
- bool? ticks,
- bool? axisTick,
- double angle = 0,
- GridAxisBuildLabel? buildLabel,
Builds an axis from values, mirroring pw.FixedAxis.fromStrings.
Implementation
static FixedAxis<int> fromStrings(
List<String> values, {
pw.TextStyle? textStyle,
double? margin,
double? marginStart,
double? marginEnd,
PdfColor? color,
double? width,
bool? divisions,
double? divisionsWidth,
PdfColor? divisionsColor,
bool? divisionsDashed,
bool? ticks,
bool? axisTick,
double angle = 0,
pw.GridAxisBuildLabel? buildLabel,
}) =>
FixedAxis<int>(
List<int>.generate(values.length, (index) => index),
format: (v) => values[v.toInt()],
textStyle: textStyle,
margin: margin,
marginStart: marginStart,
marginEnd: marginEnd,
color: color,
width: width,
divisions: divisions,
divisionsWidth: divisionsWidth,
divisionsColor: divisionsColor,
divisionsDashed: divisionsDashed,
ticks: ticks,
axisTick: axisTick,
angle: angle,
buildLabel: buildLabel,
);