compatibleChartTypesForJson function

List<ChartType> compatibleChartTypesForJson(
  1. Map<String, dynamic> json, {
  2. bool registeredOnly = true,
})

Suggest chart types that can consume json based on series-data shape.

Implementation

List<ChartType> compatibleChartTypesForJson(
  Map<String, dynamic> json, {
  bool registeredOnly = true,
}) {
  final shape = inferSeriesDataShape(json);
  return compatibleChartTypesForShape(shape, registeredOnly: registeredOnly);
}