GithubHelp home page GithubHelp logo

timelyportfolio / ebc_portal Goto Github PK

View Code? Open in Web Editor NEW

This project forked from scheng87/ebc_portal

0.0 3.0 1.0 165.64 MB

Repo for data visualizations and framework for the Evidence for Nature and People Data Portal

R 72.29% HTML 24.54% TeX 0.07% JavaScript 2.55% CSS 0.55%

ebc_portal's People

Contributors

scheng87 avatar

Watchers

 avatar  avatar  avatar

Forkers

drroad

ebc_portal's Issues

zoom??

As @scheng87 mentioned in #22, the faceted bars can become quite small and difficult to read. While zoom is available, I am not sure I like this as a way to navigate/interact with the charts. I will try to propose other alternatives. Given deadlines however, I am starting to get very concerned with any new functionality.

disclaimer added to beginning of visualizations

Could we add this somewhere on the visualizations page for each evidence map?

"This map illustrates the quantity of evidence existing for specific linkages and geographies, but does not illustrate direction of impact nor quality of evidence."

map trimming

Trim map on visualizations to remove Antartica and Artic

bottom banner

Can we stretch the black background all the way across the window for the bottom banner?

image

duplicates in comparators for conservation/human well-being

Sorry, just noticed this - but the comparators in conservation/human well-being have lots of duplicates i think due to difference in syntax. How can i best facilitate that fix? Is it by fixing the original dataset and sending you that? If so, let me know which file and I can get on that ASAP

add Excel to csv download button

csv file format is much easier to produce than Excel and are fully supported by Excel, so for those that don't know csv add "Excel" to the csv download button

styling

Fonts that were used for headers and dropdown menus was: Myriad Pro Condensed (e.g. About, Contact, Understand, Explore, Updates and content within, along with headers in text)

Body text was Helvetica Neue

Evidence for Nature and People Data Portal was Myriad Pro Regular

Can we set these?

download text and content

@scheng87 What would you like to say in the download section? Should we use this space to describe the file formats instead or blend a discussion of formats with some text about proper usage and citation?

image

remembering that this is what the accepatance modal says

image

glossary?

Did we decide on where this is going? in the About sections for each page?

replace NA with Unknown

Logic for NA is very deeply embedded into the design and data transforms. @scheng87, would it be possible to define NA in some other way and not change to "Unknown"?

empty row

row 55089 in map_data_final is blank. I can easily remove from the data, but since @scheng87 will most likely be the keeper of the data, I wanted to make sure this correction was passed through to the final source. For now, I will just remove from the json that I produce to feed the site.

tooltip on axis

I got this to work with vega but not vega-lite. Change spec to allow tooltip on axis label hover.

{
  "$schema": "https://vega.github.io/schema/vega/v3.0.json",
  "description": "A simple bar chart with embedded data.",
  "autosize": "pad",
  "padding": 5,
  "height": 200,
  "style": "cell",
  "data": [
    {
      "name": "source_0",
      "values": [
        {"a": "AAAAAAAAAAAAAAAAAAAAA", "b": 28},
        {"a": "B", "b": 55},
        {"a": "C", "b": 43},
        {"a": "D", "b": 91},
        {"a": "E", "b": 81},
        {"a": "F", "b": 53},
        {"a": "G", "b": 19},
        {"a": "H", "b": 87},
        {"a": "I", "b": 52}
      ]
    },
    {
      "name": "data_0",
      "source": "source_0",
      "transform": [
        {"type": "formula", "expr": "toNumber(datum[\"b\"])", "as": "b"},
        {
          "type": "filter",
          "expr": "datum[\"b\"] !== null && !isNaN(datum[\"b\"])"
        }
      ]
    }
  ],
  "signals": [
    {"name": "x_step", "value": 21},
    {
      "name": "width",
      "update": "bandspace(domain('x').length, 0.1, 0.05) * x_step"
    }
  ],
  "marks": [
    {
      "name": "marks",
      "type": "rect",
      "style": ["bar"],
      "from": {"data": "data_0"},
      "encode": {
        "update": {
          "fill": {"value": "#4c78a8"},
          "x": {"scale": "x", "field": "a"},
          "width": {"scale": "x", "band": true},
          "y": {"scale": "y", "field": "b"},
          "y2": {"scale": "y", "value": 0},
          "tooltip": {"field": "b", "type": "quantitative"}
        }
      }
    }
  ],
  "scales": [
    {
      "name": "x",
      "type": "band",
      "domain": {"data": "data_0", "field": "a", "sort": true},
      "range": {"step": {"signal": "x_step"}},
      "paddingInner": 0.1,
      "paddingOuter": 0.05
    },
    {
      "name": "y",
      "type": "linear",
      "domain": {"data": "data_0", "field": "b"},
      "range": [{"signal": "height"}, 0],
      "nice": true,
      "zero": true
    }
  ],
  "axes": [
    {
      "scale": "x",
      "orient": "bottom",
      "title": "a",
      "labelOverlap": true,
      "encode": {
        "labels": {
          "interactive": true,
          "update": {
            "angle": {"value": 270},
            "align": {"value": "right"},
            "baseline": {"value": "middle"},
            "tooltip": {"signal": "datum.label"}
          }
        }
      },
      "zindex": 1
    },
    {
      "scale": "y",
      "orient": "left",
      "title": "b",
      "labelOverlap": true,
      "tickCount": {"signal": "ceil(height/40)"},
      "zindex": 1
    },
    {
      "scale": "y",
      "orient": "left",
      "grid": true,
      "tickCount": {"signal": "ceil(height/40)"},
      "gridScale": "x",
      "domain": false,
      "labels": false,
      "maxExtent": 0,
      "minExtent": 0,
      "ticks": false,
      "zindex": 0
    }
  ],
  "config": {"axisX": {"labelLimit": 30}, "axisY": {"minExtent": 30}}
}

extra column included in data download

How easy would it be to eliminate an entire column from the data download? Realized that direction of outcome is still in there (I never removed it from the original dataset that feeds it) - is it better to remove it from the original data file or remove it from what is downloaded? It's columns called "Outcome.direction" and "Outcome.direction_notes"

styling - cards

@scheng87 I don't feel like the cards approach works all that well with the new design, so I am trying to think of other methods to convey the counts.

image

Some thoughts are to reduce the size or use badges within the navbar (example).

Handover

One on one between Sam and Kent to go over handover and walk through of code for future updates. Critical topics include:

  1. Adding new updates to existing data sets
  2. Adding new datasets
  3. Adding news/updates

styling - filters

could we add a box around the filters? Or a solid background to make it easier to see?

sort of like this:

image

map jumps on filter change

If the map is zoomed, rotated, etc., changing filters will re-render the map and lose the transformation.

number of total articles?

just noticed it says total number of articles is 222 but the number i have is 242? im trying to determine which is the last version of the datafile you have? i noticed some mistakes i made in the data and will need to fix - if i send new file (same columns, just adjusted data and added rows) will this cause any issues?

explanatory text to add to each vis type

How much lift would be it to add text to each vis type? Is this something I can do?

E.g. For the countries --
"This shows the number of unique articles that document a link between an intervention and an outcome for each country studied."

For heatmap --
"This shows the number of unique articles that document specific intersections of an intervention and an outcome. Because articles can study more than one intervention or outcome type, articles may occur in more than linkage cell. Darker colors indicate greater volume of articles."

etc...

about sections for each evidence map under explore

we need to add an about section for each explore by - link

options: add a tab to the row so it reads "visualization, table, download, about this evidence map"

For Conservation and Human Well-Being:

"This data was generated using a peer-reviewed systematic map protocol (Bottrill et al. 2014 (https://environmentalevidencejournal.biomedcentral.com/articles/10.1186/2047-2382-3-16)) and documented in McKinnon et al. 2016 (https://environmentalevidencejournal.biomedcentral.com/articles/10.1186/s13750-016-0058-7). This systematic map consists of articles that measure some impact of a nature-based conservation intervention (as defined by the IUCN-Conservation Measures Partnership (IUCN-CMP) Unified Classification of Conservation Actions) on aspects of human well-being. This map is limited to studies that examined these impacts in non-OECD countries.

For more information on specific inclusion and exclusion criteria and parameters of this search, please refer to the systematic map protocol in Environmental Evidence.

For metadata on data columns, please refer to the codebook from McKinnon et al. 2016."

For Forests and Poverty:

"This data was generated using a peer-reviewed systematic map protocol (Cheng et al. 2017 (https://environmentalevidencejournal.biomedcentral.com/articles/10.1186/s13750-016-0058-7). The completed systematic map article is currently in review. This systematic map consists of articles that measure links between forest-based productive activities categorized using the PRIME framework (Shyamsundar et al. 2017 https://www.profor.info/content/prime-pathways-toward-prosperity) on poverty alleviation. This map is global in scope.

For more information on specific inclusion and exclusion criteria and parameters of this search, please refer to the systematic map protocol in Environmental Evidence.

For metadata on data columns, please refer to the codebook from Cheng et al. 2016."

improve ui for filters

  • The panel with the filters on the left should be as long as the panel with map so you don’t have to scroll down when opening filter categories -- increase height using vh and add sticky top to filters 1cab6ba

  • The filters for interventions should be in the order of PRIME, with N/A last. N/A should also be last in all the sublists (under each PRIME category)

  • Need to explain what N/A includes - see #9

  • Habitat – maybe omit “terrestrial” as a heading, since it is all terrestrial? At least omit in the captions for tables

  • The map and filters are not aligned

analytics

@scheng87, what analytics would you like to add? If you own the Google Analytics account with the previous site, I am pretty sure we can port to the new site.

deploy site on netlify

@scheng87, will we buy a custom domain for this? I'll start working on a netlify deploy, and then we can add the custom domain easily.

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.