Comments (3)
rough logic
Say, we display statistical data, such as:
Our (registered) users ahve added most blocks to the chain from [location]:
// chain.blockChain --> retrieve list of all blocks
const blocks = chain.blockChain;
// map of user counts for each location
I think we should also extract approximate location for this? Not just coordinates but city or region, then. (I - Cathy - can fix that so we have that passed down into LS too, not just lat/lon)
// extract approx location from each block
// iterate over the map of user counts for each approx location
// display location with highest count and the number of blocks added from that location
from group6blockchain.
Or if we think peak times, which time(s) of the day or on what days most blocks have been added:
// extract timestamp frpom blocks
// peak hours: use the [hour] in the timestamp as a key --> map --> iterate over map --> find highest count
// display hour with highest count and number of b,locks added at that time
from group6blockchain.
fixed
from group6blockchain.
Related Issues (20)
- Extend the background of the page
- Validate chain funktionen
- chain in LS fix
- Add some kind of message on successful validation HOT 1
- Toggle "Here are your saved blocks" view HOT 1
- Fix black background
- Do we need to update "validate chain" to fetch hashes from LS?
- Make a separate module for the "display public data"-functions HOT 1
- Toggle dropdown list buttons HOT 1
- Move Verify Chain button in logged-in view
- Clean up logInAndOut module
- Alert to log in for new user
- Give some feedback to user that a new block has been added HOT 1
- errors on empty LS HOT 1
- On empty LS, chain validation evaluates to true HOT 1
- If no location data pulled while logged in, alert HOT 1
- fix all modules
- Remove all console.logs and tidy up comments
- Validationfunction may need bugfix
- Hack a block to make sure validatefunction catches broken chain HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from group6blockchain.