addAxisLabelFromFile method

Future<LabelAxisOpBuilder> addAxisLabelFromFile(
  1. int axis,
  2. String fileAssetLocation
)

Implementation

Future<LabelAxisOpBuilder> addAxisLabelFromFile(
    int axis, String fileAssetLocation) async {
  SupportPreconditions.checkNotNull(fileAssetLocation,
      message: "File path cannot be null.");
  List<String> labels = await FileUtil.loadLabels(fileAssetLocation);
  _axisLabels[axis] = labels;
  return this;
}