xTickText method

String xTickText(
  1. num position
)

What is written at an x tick: the spec's label for it, the row's label, or on a linear scale the number.

Implementation

String xTickText(num position) {
  for (final t in spec.x.tickValues) {
    if ((t.value - position).abs() < 1e-9 && t.label != null) return t.label!;
  }
  return linear ? _number(position) : xTickLabel(position.round());
}