Skip to content
This repository has been archived by the owner on Dec 20, 2022. It is now read-only.

correctiv/viz-minijobs-industries

Repository files navigation

viz-minijobs-industries

Display minijobs data about industries

Preview via gh-pages

Based on wbkd/yet-another-webpack-es6-starterkit

Uses d3 and riotjs

base visualization setup for correctiv cms

javascript

dist/bundle.js

styles

dist/styles/bundle.css

for use in correctiv cms plugins:

main grouped bars

<figure class="figure -paragraph-width">
  <div class="figure__container">
    <h2>In diesen Branchen arbeiten die meisten Minijobber</h2>
    <div data-riot-mount="cor-mj-industries-main"></div>
    <div class="figure__credits">
      Daten: <a href="">Statistik der Bundesagentur für Arbeit: Sozialversicherungspflichtig und geringfügig Beschäftigte nach Wirtschaftszweigen der WZ 2008</a>, Stand: 31.12.2015
    </div>
  </div>
</figure>

small multiple stacked bars table

<figure class="figure -full-width">
  <div class="figure__container">
    <h2>Die Branchen im Vergleich</h2>
    <div data-riot-mount="cor-mj-industries-small-multiples"></div>
  </div>
  <div class="figure__credits">
    Daten: <a href="">Statistik der Bundesagentur für Arbeit: Sozialversicherungspflichtig und geringfügig Beschäftigte nach Wirtschaftszweigen der WZ 2008</a>, Stand: 31.12.2015
  </div>
</figure>

Development

Installation

npm install

Start Dev Server

npm run dev

Build Prod Version

npm run build

Features:

When you run npm run build we use the extract-text-webpack-plugin to move the css to a separate file and included in the head of your index.html, so that the styles are applied before any javascript gets loaded. We disabled this function for the dev version, because the loader doesn't support hot module replacement.