This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void getDataFromCSV() { | |
| final file = File('/DOSYA_YOLU/medium.csv'); | |
| Stream<List> inputStream = file.openRead(); | |
| inputStream | |
| .transform(utf8.decoder) | |
| .transform(LineSplitter()) | |
| .listen( | |
| (String line) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bool isLoading = true; | |
| List<FlSpot> spotList = []; | |
| @override | |
| void initState() { | |
| super.initState(); | |
| getDataFromCSV(); | |
| } | |
| void getDataFromCSV() async { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| LineChartBarData linesBarData1() { | |
| return LineChartBarData( | |
| spots: [ | |
| FlSpot(1, 1), | |
| FlSpot(3, 1.5), | |
| FlSpot(5, 1.4), | |
| FlSpot(7, 3.4), | |
| FlSpot(10, 2), | |
| FlSpot(12, 2.2), | |
| FlSpot(13, 1.8), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| LineChartData( | |
| lineTouchData: LineTouchData( | |
| touchTooltipData: LineTouchTooltipData( | |
| tooltipBgColor: Colors.blueGrey.withOpacity(0.8), | |
| ), | |
| touchCallback: (LineTouchResponse touchResponse) {}, | |
| handleBuiltInTouches: true, | |
| ), | |
| gridData: FlGridData( | |
| show: false, |
NewerOlder