AxisLabelFormatterFunc typedef

AxisLabelFormatterFunc = String Function(dynamic numOrDate, int granularity, Function opts, Dygraph dygraph)

Implementation

typedef AxisLabelFormatterFunc = String Function(
  // either a number (for a numeric axis) or a Date object (for a date axis)
  dynamic numOrDate,
  // specifies how fine-grained the axis is. e.g. `DygraphGranularity.WEEKLY`
  int granularity,
  // a function which provides access to various options on the dygraph, e.g. opts('labelsKMB')
  Function opts,
  // the referenced graph
  Dygraph dygraph,
);