Use the previous projects on temperature and BTS member height as a reference to create a chart that uses a graphic as data point marker instead of the previous circle
.
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
import 'package:flutter/material.dart'; | |
import 'package:thetaf/thetaf.dart'; | |
void main() { | |
runApp(const AtkTutorial()); | |
} | |
class AtkTutorial extends StatelessWidget { | |
const AtkTutorial({Key? key}) : super(key: key); |
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
import 'package:flutter/material.dart'; | |
import 'package:thetaf/thetaf.dart'; | |
void main() { | |
runApp(const AtkTutorial()); | |
} | |
class AtkTutorial extends StatelessWidget { | |
const AtkTutorial({Key? key}) : super(key: key); |
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
import 'package:flutter/material.dart'; | |
/// simple template for Flutter app | |
void main() { | |
runApp(const AtkTutorial()); | |
} | |
class AtkTutorial extends StatelessWidget { | |
const AtkTutorial({Key? key}) : super(key: key); |
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
public class Main { | |
public static void main(String[] args) { | |
String data = "CCAAAAATTT!"; | |
char maxLetter = data.charAt(0); | |
int maxCount = 1; | |
for (int i = 0; i < data.length() -1; i++) { | |
int currentCount = 1; | |
char letter = data.charAt(i); |
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 main() async { | |
Stream<String> sushi = Stream<String>.periodic(Duration(seconds: 1), (x) => '$x: fish').take(10); | |
var mappedSushi = sushi.map((sushiPiece) => sushiPiece + ' mapped'); | |
await mappedSushi.forEach( print); | |
} | |
/* output | |
0: fish mapped | |
1: fish mapped |
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
import 'package:flutter/material.dart'; | |
import 'mjpeg_view.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Flutter Demo', |
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
/** | |
* Copyright 2018 Ricoh Company, Ltd. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 |
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
/** | |
* Copyright 2018 Ricoh Company, Ltd. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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
d3.csv('data/rainfall-by-state.csv').then(data => { | |
data.forEach(stateData => { | |
stateData.rainfall = +stateData.rainfall; | |
const checkChar = /^[A-Z]/; | |
for (let i = 0; i < 5; i++) { | |
if (checkChar.test(stateData.state)) { | |
console.log('found capital letter'); | |
break; | |
} else { | |
stateData.state = stateData.state.substring(1); |
NewerOlder