fl_chart
fl_chart copied to clipboard
[Linear Chart] [Tiles] The x axis is being autocompleted
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
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!