Giter VIP home page Giter VIP logo

carbontaxresources's Introduction

Carbon Pricing Graphs

This is a set of four graphs illustrating RFF's Summer 2018 Resources article on carbon pricing for the US energy sector

About the code

The graphs are all based on Highcharts with varying degrees of extension and customization. The first two are animated line graphs with multiple series; the second two are stacked column graphs that animate when different carbon-tax scenarios are selected.

To edit

  1. Install npm
  2. Clone the repository.
  3. Run npm install in the directory of your repository to install Grunt and other dev dependencies
  4. Start a dev server such as python -m SimpleHTTPServer
  5. Run grunt watch to convert the SCSS into CSS, lint the HTML and JavaScript files when they are edited, and transpile the ES6 index.js file into pre-ES6 compatible code.

Note that editable dev files are in /dev-css and /dev-js folders, respectively. Files in /css and /js folders are emitted by the build process and should not be edited directly.

To deploy

  1. Run grunt postcss to automatically add any necesary vendor prefixes to the css and emit a build file to the /css folder. Run grunt cssmin to minify the .css file to .min.css. Run grunt uglify to minimize the javascript.
  2. The live code exists inline in the body of a page on RFF's site
  3. To edit the live page, cut and paste css/styles.min.css, js/index.js and the relevant bits of index.php into the right places in the content body. Existing page content is commented to make this clear.

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.