Here we have rendered a simple bar chart of hard-coded data regarding snow totals in Upstate New York for the 2014-2015 winter season. The graph includes two scaled axes and outputs the snow total when hovering over each bar. Built with D3.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NEXIS Seminar R Example | |
# | |
# Bar Chart | |
# Create the data frame | |
cities <- c('Buffalo', 'Syrause', 'Binghamton', 'Rochester', 'Albany') | |
snow <- c(75.5, 60.1, 58.7, 54.2, 52.3) | |
snowLevels <- data.frame(cities, snow) | |
print(snowLevels) |
An interactive heatmap of drought conditions in the United States, reflecting data from November 2008. Rendered w/ D3.
An interactive bar chart of snow totals in the United States, using D3 and some JQuery magic. Used as a walkthrough tutorial at the first Syracuse InfoViz Meetup.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var webpack = require('webpack'); | |
var config = require('config'); | |
var merge = require('webpack-config-merger'); | |
var baseConfig = require('./webpack.base.js'); | |
var patterns = require('css-patterns'); | |
var path = require('path'); | |
var WP_PORT = config.get('webpackServer.port'); | |
module.exports = merge(baseConfig, { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"parser": "babel-eslint", | |
"plugins": [ | |
"react" | |
], | |
"env": { | |
"browser": true, | |
"node": true, | |
"es6": true | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var webpack = require('webpack'); | |
var merge = require('webpack-config-merger'); | |
var ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
var baseConfig = require('./webpack.base.js'); | |
var config = require('config'); | |
var patterns = require('css-patterns'); | |
var path = require('path'); | |
module.exports = merge(baseConfig, { | |
entry: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import config from 'config'; | |
import express from 'express'; | |
import proxy from 'proxy-middleware'; | |
import request from 'request'; | |
import url from 'url'; | |
import webpack from 'webpack'; | |
import WebpackDevServer from 'webpack-dev-server'; | |
import WebpackDevConfig from './config/webpack.development'; | |
const APP_PORT = config.get('server.port'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var path = require('path'); | |
module.exports = { | |
env: (process.env.NODE_ENV || 'development'), | |
webpackServer: { | |
port: (process.env.WEBPACK_PORT || 8888) | |
}, | |
server: { | |
port: (process.env.PORT || 5000) | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var path = require(‘path’); | |
module.exports = { | |
env: (process.env.NODE_ENV || ‘development’), | |
server: { | |
port: (process.env.PORT || 5000) | |
}, | |
webpack: { | |
output: { | |
path: path.join(__dirname, ‘../build/assets’), |
OlderNewer