Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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