We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
My LineChart is correctly drawn when using maxY greater than minY:
LineChart( LineChartData( minX: 1, maxX: 18, minY: 3, maxY: -3, borderData: FlBorderData(show: false), lineTouchData: const LineTouchData(enabled: false), titlesData: FlTitlesData( show: true, topTitles: AxisTitles( sideTitles: SideTitles( showTitles: true, getTitlesWidget: (value, meta) { return Center( child: Text( value.toInt().toString(), style: const TextStyle( fontSize: 8, color: Colors.black, ), textAlign: TextAlign.center, ), ); }, ), ), bottomTitles: const AxisTitles( sideTitles: SideTitles(showTitles: false), ), leftTitles: AxisTitles( sideTitles: SideTitles( showTitles: true, getTitlesWidget: (value, meta) { final formattedValue = (-3 - value).toInt().toStringAsFixed(2); return Text( formattedValue, style: const TextStyle( fontSize: 8, color: Colors.black, ), ); }, ), ), rightTitles: const AxisTitles( sideTitles: SideTitles(showTitles: false), ), ), lineBarsData: [ LineChartBarData( color: Colors.green, spots: [ const FlSpot(5, -2), const FlSpot(6, -3), const FlSpot(7, 0), const FlSpot(8, 1), const FlSpot(9, 2) ], ), ], ), )
Flutter v3.24.2 fl_chart v0.69.0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
My LineChart is correctly drawn when using maxY greater than minY:
Flutter v3.24.2
fl_chart v0.69.0
The text was updated successfully, but these errors were encountered: