Skip to content

La-Silla-Vacia/los_presidenciables

Repository files navigation

Source files for los_presidenciables

Preview

You can find a preview of 'los_presidenciables' here

Data

The data is loaded from a Google Firebase and defined in de dataUri tag in the embed code

Installation

First, make sure you have Node.js and Yarn installed on your operating system.

After cloning the repository run inside the directory:

yarn install

To start watching the project and opening in the browser run:

yarn start

To deploy to GitHub Pages run:

yarn run deploy

Embeding on webpage

To embed on a webpage use this code:

<!-- START OF OUR INTERACTIVE -->
<script type="text/javascript">
  window.los_presidenciables__data = {
    "dataUri": "https://lsv-candidatos-congreso-2018.firebaseio.com/comparacion.json"
      
  }
</script>
<div class="lsv-interactive" id="los_presidenciables">
<img src="https://raw.githubusercontent.com/la-silla-vacia/lsv-interactive/master/misc/lsvi-loading.gif"
     alt="Interactive is loading" style="width:100%;max-width: 320px;margin: 4em auto;display: block;">
</div>
<link type="text/css" rel="stylesheet" href="https://la-silla-vacia.github.io/los_presidenciables/styles.css" />
<script defer type="text/javascript" src="https://la-silla-vacia.github.io/los_presidenciables/script.js"></script>
<script src="//d3js.org/d3.v3.min.js"></script>
<script type="text/javascript" src="https://ssl.gstatic.com/trends_nrtr/1328_RC04/embed_loader.js"></script>
<!-- END OF OUR INTERACTIE -->

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published