tryAdaptAuto static method

ChartAutoSwitchResult tryAdaptAuto(
  1. Map<String, dynamic> json, {
  2. List<ChartType>? preferredOrder,
  3. bool includeCurrentType = false,
  4. bool registeredOnly = true,
})

Non-throwing auto-switch variant for UI/runtime chart switching.

Implementation

static registry.ChartAutoSwitchResult tryAdaptAuto(
  Map<String, dynamic> json, {
  List<ChartType>? preferredOrder,
  bool includeCurrentType = false,
  bool registeredOnly = true,
}) => registry.trySwitchChartTypeForSeriesShapeAuto(
  json,
  preferredOrder: preferredOrder,
  includeCurrentType: includeCurrentType,
  registeredOnly: registeredOnly,
);