Skip to content

Commit

Permalink
made the graph more accurate using relativeLineTo method
Browse files Browse the repository at this point in the history
  • Loading branch information
chiranjeev kundu committed May 20, 2023
1 parent b2a13b6 commit 0927876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/screens/coin/coin-graph.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class CoinChartPainter extends CustomPainter {
var value = data[i];
double x = _x(i, width);
double y = _y(value, height);
path.lineTo(x, y);
path.relativeLineTo(x, y);
}

Paint paint = Paint()
Expand Down

0 comments on commit 0927876

Please sign in to comment.