Skip to content

Instantly share code, notes, and snippets.

View burakJs's full-sized avatar
👨‍💻
Working

Burak İmdat burakJs

👨‍💻
Working
View GitHub Profile
void getDataFromCSV() {
final file = File('/DOSYA_YOLU/medium.csv');
Stream<List> inputStream = file.openRead();
inputStream
.transform(utf8.decoder)
.transform(LineSplitter())
.listen(
(String line) {
bool isLoading = true;
List<FlSpot> spotList = [];
@override
void initState() {
super.initState();
getDataFromCSV();
}
void getDataFromCSV() async {
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),
@burakJs
burakJs / chart.dart
Last active May 7, 2021 21:34
For Medium
LineChartData(
lineTouchData: LineTouchData(
touchTooltipData: LineTouchTooltipData(
tooltipBgColor: Colors.blueGrey.withOpacity(0.8),
),
touchCallback: (LineTouchResponse touchResponse) {},
handleBuiltInTouches: true,
),
gridData: FlGridData(
show: false,