getTextPainter method
Implementation
getTextPainter(String text) => TextPainter(
text: TextSpan(
text: "$text",
style: TextStyle(color: chartColors.defaultTextColor, fontSize: 10),
),
textDirection: TextDirection.ltr,
);