Giter VIP home page Giter VIP logo

Comments (3)

cathywiden avatar cathywiden commented on August 14, 2024

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.

cathywiden avatar cathywiden commented on August 14, 2024

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.

cathywiden avatar cathywiden commented on August 14, 2024

fixed

from group6blockchain.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.