This file contains 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
<!-- The core Firebase JS SDK is always required and must be listed first --> | |
<script src="https://www.gstatic.com/firebasejs/6.6.0/firebase-app.js"></script> | |
<!-- TODO: Add SDKs for Firebase products that you want to use | |
https://firebase.google.com/docs/web/setup#config-web-app --> | |
<script> | |
// Your web app's Firebase configuration | |
var firebaseConfig = { | |
apiKey: "abcdefghijklmnopqrstuvwxyz", |
This file contains 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
var express = require('express') | |
var bodyParser = require('body-parser') | |
var cors = require('cors') | |
var routeSaya = require('./route/route') | |
var app = express() | |
app.use(cors()) | |
app.use(bodyParser.json()) | |
app.use(routeSaya) |
This file contains 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
var router = require('express').Router() | |
var fire = require('./fire') | |
var bodyParser = require('body-parser') | |
var db = fire.firestore() | |
router.use(bodyParser.json()) | |
router.get('/data', (req, res)=>{ | |
db.settings({ | |
timestampsInSnapshots: true | |
}) |
This file contains 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
var firebase = require('firebase') | |
var config = { | |
apiKey: "abcdefghijklmnopqrstuvwxyz", | |
authDomain: "lintangwisesa.firebaseapp.com", | |
databaseURL: "https://lintangwisesa.firebaseio.com", | |
projectId: "lintangwisesa", | |
storageBucket: "lintangwisesa.appspot.com", | |
messagingSenderId: "1234567890", | |
appId: "0:1234567890:web:1234567890abcde" |
This file contains 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
<LineChart | |
data={{ | |
labels: ["Januari", "Februari", "Maret", "April", "Mei", "Juni"], | |
datasets: [ | |
{ | |
data: [ | |
Math.random() * 100, | |
Math.random() * 100, | |
Math.random() * 100, | |
Math.random() * 100, |
This file contains 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
<LineChart | |
data={{ | |
labels: ["Januari", "Februari", "Maret", "April", "Mei", "Juni"], | |
datasets: [ | |
{ | |
data: [ | |
Math.random() * 100, | |
Math.random() * 100, | |
Math.random() * 100, | |
Math.random() * 100, |
This file contains 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
<BarChart | |
data={{ | |
labels: ["Januari", "Februari", "Maret", "April", "Mei", "Juni"], | |
datasets: [ | |
{ | |
data: [ | |
Math.random() * 100, | |
Math.random() * 100, | |
Math.random() * 100, | |
Math.random() * 100, |
This file contains 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
<StackedBarChart | |
data={{ | |
labels: ["Test1", "Test2"], | |
legend: ["L1", "L2", "L3"], | |
data: [[60, 60, 60], [30, 30, 60]], | |
barColors: ["#dfe4ea", "#ced6e0", "#a4b0be"] | |
}} | |
width={Dimensions.get("window").width - 50} // from react-native | |
height={220} | |
yAxisLabel={"Rp"} |
This file contains 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
<PieChart | |
data={ | |
[ | |
{ | |
name: "Jawa Barat", | |
population: 48.0, | |
color: "rgba(131, 167, 234, 1)", | |
legendFontColor: "white", | |
legendFontSize: 11 | |
}, |
This file contains 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 { | |
LineChart, | |
BarChart, | |
PieChart, | |
ProgressChart, | |
ContributionGraph, | |
StackedBarChart | |
} from "react-native-chart-kit"; |
OlderNewer