fl_chart icon indicating copy to clipboard operation
fl_chart copied to clipboard

[Linear Chart] [Tiles] The x axis is being autocompleted

Open VinniciusJesus opened this issue 5 months ago • 1 comments

I have the following FlSpot list:

  FlSpot(1, 0),
  FlSpot(30, 0),
  FlSpot(29, 0),
  FlSpot(28, 0),
  FlSpot(27, 0),

Because there is FlSpot(1, 0), it autocompletes the x axis until it reaches FlSpot(27, 0), thus, an undesirable behavior

Code:

lineBarsData: [
LineChartBarData(
barWidth:  5,
color:  Color(0xFFE8A0BF),
spots: [
FlSpot(1, 0),
FlSpot(30, 0),
FlSpot(29, 0),
FlSpot(28, 0),
FlSpot(27, 0),
],
dotData:  FlDotData(show:  true),
),
]

expected: 1 , 30, 29, 28, 27 obtained: 1, 2 , 3 , 4, 5, 6, 7, 8, 9, 10, 11, 12.....25, 26 ,27, 28, 29, 30

VinniciusJesus avatar Feb 01 '24 12:02 VinniciusJesus

Can you please provide me a reproducible code? Is it related to #1393? If yes, please close this issue, and let's follow it in one place. Thanks!

imaNNeo avatar Feb 06 '24 22:02 imaNNeo