Giter Site home page Giter Site logo

ladybug-tools / spider-covid-19-viz-3d Goto Github PK

View Code? Open in Web Editor NEW
20.0 7.0 5.0 165.52 MB

Speedy access to the latest, local COVID-19 data with a familiar interface: the Globe

Home Page: https://ladybug-tools.github.io/spider-covid-19-viz-3d/

License: MIT License

HTML 27.71% JavaScript 69.34% CSS 2.95%
covid-19 coronavirus 3d-visualization coronavirus-tracking visualization globe threejs javascript webgl plain-javascript

spider-covid-19-viz-3d's Introduction

You are now in a GitHub source code view - click this link to view Read Me file as a web page

Full Screen stable: covid 19 viz3d

Full Screen latest: covid 19 viz3d/dev

  • Demos of the various modules used to build the viewer
  • Files for every daily project update since 200-03-19. Some files are better than others.
  • Files from the first day of the project
Concept

The concept of the web page is to show you the current COVID-19 situation around the entire world in 3 seconds or less.

  • View the latest COVID-19 data from John Hopkins University GitHub repository with interactive 3D
  • Provide entry-level programming code - plain-vanilla JavaScript - anybody can copy and make better
  • Display all the data in seconds on any device then zoom and rotate and click to see the cases in 3D

The general idea is

  • You want to access the latest global data
  • You want to access the latest data for where you live
  • You want to access "an expression of hope" even if the data is nasty

Mentions

Influences on the features

@loleg I'm not sure how best to describe this, but what I wish for in an interactive viz like this, is the ability to discover what's hot and happening "out there". For example, the home page of gitter.im has more or less live messages from around the world. I wonder if we could show positive tweets and expressions of hope and gratitude for the courage of health workers around the world.

Sky Box as an "Expression of Hope"

  • Zoom out then rotate. Trying to read the messages is a little guessing game.
  • The text is huge and leaves much white space. This is so you are not totally distracted while looking at the data.

Messages of hope to add

  • “Do what you can, where you are, with what you have.”

Burning Man / Wild Wild West / Fair

Most of the time I try to create very simple, clean user experiences. Think Google's Material Design and Apple. I generally build tech stuff for techies.

But this is different. We want oldsters and children, tech and non-techies involved. We are seeing thus with painting abd drawing - a move from abstract to figurative, from minimal to pop-surreal.

The idea is to re-imagine the "chart", to turn the representation of quantities into more than mere the calligraphic scrawls we call "numbers".

Love and Hate with the Earth as a globe

Some of the great things about the globe is that yoo know what to do with it. You can spin it, You know the top and bottom bits are kind of boring and not much happens there. You know where you live.

On the other hand, the Pacific Ocean takes half the space and there's nothing there either. And whenever other places of interest there tend to be a ton of then and it's very difficult to attach a sign to one place without covering up the next place.

To do and wish list

Generally / Short term

To Do

  • Add stats to settings
  • Start updating JHU modules
  • State | regional data in its own div
  • Notes as a thing
  • Use main or HTML for init

Places

  • Other large jurisdictions: Brazil, India, Indonesia, Russia

Indicator Bars

  • Replay all stats individually - see last five days of just new cases
  • Code in its own module
  • Show some item of interest at the top of each indicator bar
    • As in all classical columns have a capital
    • Country or state flag?
    • Placards over each bar showing country - 2 letter identifier - & # cases?
    • Ends on Red bars
    • Days since last new case indicated as color or opacity

Pop-ups

  • 2020-04-18 ~ Theo ~ Pop-ups remember size and position between calls

Background

  • 2020-04-15 ~ Theo ~ Background as a gradient
  • 2020-04-15 ~ Theo ~ Sky box as Three.js text
  • 2020-04-18 ~ Theo ~ Sky Box: add messages on the fly
  • 2020-04-14 ~ Theo ~ Settings in their own modules

Sessions

  • 2020-04-06 ~ Theo ~ Current settings save in local storage
    • Globe rotates to the lat/lon onload as set and saved in localStorage
    • Multiple locations & zoom levels
    • Scaled or linear heights
  • Location hash goes to place and set language and other aspects

"Expressions of Hope"

  • Translations with workflow for producing translations
  • Twitter API
  • Add to telephone messages
    • Random messages
    • In browser language
  • Notes to pop-up
  • Add "expressions of hope" such as positive tweets - in language?

Medium Term

Vision of the future

  • New organization?

  • Better geoJson parser JavaScript function

  • Separate timeline pages

  • web pages for counties/provinces

  • Add sound/music? During mouseover and at mouse click or data update

  • Refresh data every few minutes

  • Sun path? Mountains? Flamingos and dolphins?

  • Rebuild oSome globe

  • Themes? Mid-century modern, Burner, pixelated

  • Rotation + zoom - 3D Lissajous path

Statistics

  • Community transmission vs traveller transmission
    • Data in WHO PDF file hard to parse
  • a growing percentage affected per day of each country's population rather than cases detected if we're separating it out by country.

new cases in the past day. divided by the new cases the previous day. More cases is interesting, but far more interesting (to me, anyway) is that if it's increasing. I'd suggest the derivative of the above as well, as I'd like to know if the rate of growth is increasing or decreasing, but I might be the only one that would find that interesting.

User forgiveness

  • Set limits so cannot go too far north or south
Issues
Things you can do using this script
  • Click the three bars( 'hamburger menu icon' ) to slide the menu in and out
  • Click the GitHub Octocat icon to view or edit the source code on GitHub
  • Click on title to reload te page
  • Press Control-U/Command-Option-U to view the source code
  • Press Control-Shift-J/Command-Option-J to see if the JavaScript console reports any errors
Credits and Links of interest

Data sources

Compare sources

About Covid

Dependencies

Trackers

Other 3D visualizations of the COVID-19 data

2D of interest

Geolocation

Globes

Source of bitmaps used on globe

Map Tile Server lists

TopoJson

geoJson

geoJson useful

wikipedia api

wiki geography

WP Chart Templates

Google DSPL

SEDAC

simplemaps

JHU

Cool Three.js Globe handling

tests

Change log

Daily change logs are now in the v-dates/ folders.

2020-04-25: To do and Wish List updates are now in change-log.md


spider-covid-19-viz-3d's People

Contributors

paulmasson avatar theo-armour avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

spider-covid-19-viz-3d's Issues

Resume autorotation after delay

@theo-armour this always one of the things you tell me to do. Easy to implement.

Should also perhaps remove the reset view and rotate buttons, as well as improve the look of the global statistics button. These are things I could do, but want to get our work flow synced first, so maybe you should just address this.

z-fighting on small bars

@theo-armour instead of using three standard boxes stacked on one another, how about constructing your own rectangular geometry with three divisions on each long side for face coloring. I can do it tomorrow if you don’t first.

P.S. love the coloring of bars: nice direct indication of the state of each country.

window.history.pushState()

@paulmasson

window.history.pushState()

Some links of a Fiddle or help with a static link to updated files would be a huge help to all my efforts.

I hope you can help!

Use latest versions of app by default

Now that #7 has been merged (and will presumably make it into all dev versions in progress), how about reverting the index files to use GitHub API to pull file list from app folder and use appropriate latest versions for both stable and dev? Will save you effort going foward!

Expressions of hope

I'm not sure how best to describe this, but what I wish for in an interactive viz like this, is the ability to discover what's hot and happening "out there". For example, the home page of gitter.im has more or less live messages from around the world. I wonder if we could show positive tweets and expressions of hope and gratitude for the courage of health workers around the world. Or what do you think?

2020-03-18 topics to discuss

@paulmasson

release management

  • folder structure
  • release management
  • Theo's incessant wackiness
    • wants to run before merge
    • must allow for a sandbox

code issues

  • cannot keep adding more dev files because pushes stable
  • index.html shows up when you view source - needs comments

visions

  • new organization?
  • separate timeline pages
  • web pages for counties/provinces
  • Translations
  • better geoJson
  • sound/music?
  • positive tweets?
  • rotation + zoom - 3D Lissajous path

Timeline

As I already mentioned in an issue for a similar project, it would be great to have a timeline to scroll through the data and see the bars animate ^_^

alexnieddu/Covid-19-Globe#1

Too much information?

As of dev 2020-03-21-20-11, the presentation appears to be getting too busy. That version introduces a second popup in the upper right-hand corner with daily cases. The too popups sometimes differ in numbers, which is confusing. Having so much numeric information on the screen detracts from the current simplicity and conciseness.

If the daily information is to be incorporated, perhaps a more discreet presentation is in order.

Data attribution

It is quite important to link to your sources, and at the moment I'm not seeing that in the menu or legend. If you are doing any transformation to the data, then even better than a direct link would be to a Data Package that is used for this dataviz, which describes the changes made to the schema or content.

Display of sidebar title in Firefox

@theo-armour the version number is too large in Firefox to fit inside the sidebar width and so always starts on another line. This occurs regardless of what setting is used for word wrap in the enclosing <h2> element or whether all of the text is concatenated inside the <a> element. As a result the title looks simply awful in Firefox. Safari and Chrome do not have this problem.

Options are to replace <h2> with <p> or widen the sidebar a bit.

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.