tryAdapt static method
Non-throwing variant of adapt for UI/runtime chart switching.
Implementation
static registry.ChartTypeSwitchResult tryAdapt(
Map<String, dynamic> json,
ChartType targetType, {
bool force = false,
bool registeredOnly = true,
}) => registry.trySwitchChartTypeForSeriesShape(
json,
targetType: targetType,
force: force,
registeredOnly: registeredOnly,
);