@@ -16,7 +16,7 @@ class LayeredChart extends StatefulWidget {
1616 static EarlyInterpolator interpolator = new EarlyInterpolator (0.8 );
1717
1818 LayeredChart (this .dataToPlot, this .milestones, animationValue) {
19- this .animationValue = interpolator.get (animationValue);
19+ this .animationValue = 1 ; // interpolator.get(animationValue);
2020 }
2121
2222 @override
@@ -235,7 +235,7 @@ class ChartPainter extends CustomPainter {
235235 double x1 = MathUtils .map (p, 0 , 1 , startX, endX);
236236 double y1 = MathUtils .map (p, 0 , 1 , startY, endY);
237237 double x2 = x1 - xIndent;
238- double y2 = y1 - graphGap * (m - 0.5 );
238+ double y2 = y1 - graphGap * (m - 1 );
239239 x1 += dx * 0.5 ;
240240 y1 += graphGap * 0.5 ;
241241 double textY = y1 + 5 ;
@@ -272,7 +272,7 @@ class ChartPainter extends CustomPainter {
272272// canvas.translate(startX + 25, startY - 2);
273273 canvas.skew (0 * pi / 180 , - theta);
274274 TextPainter tp = state.labelPainter[i];
275- canvas.drawRect (new Rect .fromLTWH (- 2 , - 2 , tp.width + 4 , tp.height + 4 ), fillPaint);
275+ canvas.drawRect (new Rect .fromLTWH (- 1 , - 1 , tp.width + 2 , tp.height + 2 ), fillPaint);
276276 tp.paint (canvas, new Offset (0 , 0 ));
277277 canvas.restore ();
278278 }
0 commit comments