Giter Site home page Giter Site logo

palewire / first-visual-story Goto Github PK

View Code? Open in Web Editor NEW
29.0 16.0 9.0 58.49 MB

A step-by-step guide to publishing a standalone story from a dataset.

Home Page: https://palewi.re/docs/first-visual-story/

License: MIT License

CSS 79.96% Makefile 11.80% Python 8.25%
nodejs journalism media tutorial walkthrough education static-site-generator news data-journalism

first-visual-story's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

first-visual-story's Issues

Do we want to install dependencies as we go along?

Ie., using npm to install required libraries as we get to that point in the class. This would show people that these dependencies are flexible and can be adjusted to the needs of the project.

The downside is there might be hiccups if internet connections are wonky.

Yeogurt setup questions

Figure we should have these addressed and outlined. How does this look?

project name: first-graphics-app
Javascript preprocessor: None (we could use Babel but no real need here)
Write styles: Sass
Sass syntax: SCSS (I don't think we'll be using this but going with what I'm familiar with)
Javascript testing framework: None (assuming we don't need this)

screen shot 2018-02-03 at 3 44 01 pm

Default Gulp setup doesn't copy/serve the _data directory

This would be solved by a fix to the gulp task in copy.js, but would change things from the default Yeogurt setup, I believe. Also having trouble dissecting that regex.

The alternative is to request the data directly from the github repo, with the caveat that it could get super slow if the internet gets wonky.

Docs issue ... variable changes in example

There is a point in the docs when building charts that the layout variable changes to chartLayout in the example code:

var chartLayout = { //should be `layout`
    xaxis: {
        title: 'Year',
        fixedrange: true
    },
    yaxis: {
        fixedrange: true
    },
    // Add the margin here
    margin: {
        l: 45,
        r: 15,
        t: 45,
        b: 30
    },
    // Add a height parameter to the bottom of your file
    height: 250
};

If a student copy 'n' pastes the whole block, their variable will change and it won't work anymore.

Should main.js come after the scripts block?

My thought is that we use the scripts block to write/include any data to the template, and then do all the charting/mapping/data manipulation inside of main.js.

For example,

{% block scripts %}
<script>
var homicides = {% include '_data/annual_totals.json' %}
</script>
{% endblock %}

and then inside of charts.js which is called from (or could be directly written into main.js) you can directly refer to the homicides variable which exists as a global on the template.

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.