priceLineValue method
A price line's value: its own, or its field in the last row.
Implementation
double? priceLineValue(GraphPriceLineSpec line) {
if (line.value != null) return line.value;
if (count == 0) return null;
final v = rows.last[line.field];
return v is num ? v.toDouble() : null;
}