LineChart.fromDateTimeMaps constructor
LineChart.fromDateTimeMaps(})
Implementation
factory LineChart.fromDateTimeMaps(
List<Map<DateTime, double>> series,
List<Color> colors,
List<String> units, {
FontWeight? tapTextFontWeight,
bool? showMonthsName,
String? yAxisName,
}) {
assert(series.length == colors.length);
assert(series.length == units.length);
Pair<List<ChartLine>, Dates> convertFromDateMaps =
DateTimeSeriesConverter.convertFromDateMaps(series, colors, units);
return LineChart(convertFromDateMaps.left, convertFromDateMaps.right,
tapTextFontWeight: tapTextFontWeight,
showMonthsName: showMonthsName,
yAxisName: yAxisName);
}