fromData method
Implementation
ChartDataLabel fromData(dynamic data) {
this.data = data;
return ChartDataLabel(
color: color,
anchor: anchor,
position: position,
direction: direction,
labelcolor: labelcolor,
labelsize: labelsize,
label: label,
startlabel: startlabel,
endlabel: endlabel,
x: x,
x1: x1,
x2: x2,
y: y,
y1: y1,
y2: y2,
);
}