Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix max height graph #107

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions lib/src/bezier_chart_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1077,6 +1077,11 @@ class _BezierChartPainter extends CustomPainter {
void paint(Canvas canvas, Size size) {
final height = size.height - config.footerHeight;
Paint paintVerticalIndicator = Paint();

double infoWidth = 0; //base value, modified based on the label text
double infoHeight = 40;


try {
paintVerticalIndicator
..color = config.verticalIndicatorColor
Expand Down Expand Up @@ -1189,7 +1194,7 @@ class _BezierChartPainter extends CustomPainter {
final double valueY = height -
_getRealValue(
axisY - (config.startYAxisFromNonZeroValue ? minYValue : 0.0),
height,
height - infoHeight,
_maxValueY,
);

Expand Down Expand Up @@ -1340,8 +1345,7 @@ class _BezierChartPainter extends CustomPainter {
(verticalX - p0.dx) / (p3.dx - p0.dx),
);

double infoWidth = 0; //base value, modified based on the label text
double infoHeight = 40;


//bubble indicator padding
final horizontalPadding = 28.0;
Expand Down