tryAdaptAuto static method
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,
);