PieLabelLineConfig.fromJson constructor
PieLabelLineConfig.fromJson(
- Map<String, dynamic> j
)
Implementation
factory PieLabelLineConfig.fromJson(Map<String, dynamic> j) {
return PieLabelLineConfig(
slices: _pieSlices(j),
labelLineLength: PieJson.nonNegativeDouble(j['labelLineLength'], 28.0),
labelLineAngleOffset: PieJson.doubleOr(j['labelLineAngleOffset'], 0.0),
padAngle: PieJson.angleGap(j['padAngle'], 0.02),
title: PieJson.title(j['title']),
tooltip: PieJson.tooltip(j['tooltip']),
legend: PieJson.legend(j['legend']),
toolbox: PieJson.toolbox(j['toolbox']),
grid: PieJson.grid(j['grid']),
);
}