Skip to content

Instantly share code, notes, and snippets.

@Indy9000
Created June 13, 2021 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Indy9000/844a93f1cf078737f5e34134d6ad3d19 to your computer and use it in GitHub Desktop.
Save Indy9000/844a93f1cf078737f5e34134d6ad3d19 to your computer and use it in GitHub Desktop.
line-chart-widget
@override
void paint(Canvas canvas, Size size) {
...
final labels = _computeLabels();
_drawYLabels(canvas, labels, points, boxW, border);
// draw x labels
final lt1 = Offset(border + boxW / 2.0, border + 4.5 * hu);
_drawXLabels(canvas, lt1, boxW);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment