Created
June 13, 2021 19:50
-
-
Save Indy9000/844a93f1cf078737f5e34134d6ad3d19 to your computer and use it in GitHub Desktop.
line-chart-widget
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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