imaNNeo / fl_chart

FL Chart is a highly customizable Flutter chart library that supports Line Chart, Bar Chart, Pie Chart, Scatter Chart, and Radar Chart.
https://flchart.dev
MIT License
6.87k stars 1.78k forks source link

VerticalLineLabel position has changed when migrating to new versions #1677

Open OliverNarramore opened 5 months ago

OliverNarramore commented 5 months ago

I am currently in the process of migrating from version 0.46.0 to 0.68.0. My issue is that since migrating, the vertical line label used to sit below the x axis, now it sits above it.

My extralinesdata is unchanged using the following code:

return ExtraLinesData( verticalLines: [ VerticalLine( x: 0, dashArray: [4, 1], strokeWidth: 1.5, color: Colors.white, label: VerticalLineLabel( show: true, style: TextStyle(color: Colors.white), padding: const EdgeInsets.all(10), alignment: Alignment.bottomCenter, labelResolver: (_) => 'LABEL', ), ), ], );

Before is on the left, after on the right.

Screenshot 2024-05-31 at 12 14 45

Versions