Skip to main content
100%

IV4

✓ Published0🌍 Public
CChristosT
Last edited Feb 17, 2016
Created on Feb 15, 2016

This block, forked from ChristosT’s VI3 example, presents two side-by-side D3.js visualizations: an animated scatterplot of gold prices (2005–2011) and a static stacked bar chart of U.S. wireless carrier market share. The scatterplot encodes time on the x-axis and price on the y-axis, with circles transitioning from the bottom to their mapped positions to emphasize the rising trend. The stacked bar chart uses area and color hue to represent the proportional shares of five carriers. Both are rendered with SVG and animation in d3.v3, with data from public sources and original code adapted from referenced examples.

AI-generated description

Christos Tsolakis

Live at http://bl.ocks.org/ChristosT/77ddbd1e08c11e18a0f7

R Language - Recreation

#Scatterplot
Time <-seq(2005,2011,1)
Price <-c(444.74,603.46,695.39,871.96,972.35,1224.53,1571.52)
plot(Time,Price,ylab="Price $/troy ounce",main="Price of Gold",pch=19,col="blue")

Scatterplot

#Stacked Barchart
A <- c(33,34,1,16,16)
L <- c("Verizon","AT&T","US Cellular","Sprint","T-Mobile")
title <- "Market share of wireless subscriptions in the U.S. for Q3 2015"
barplot(as.matrix(A),legend=L,width=0.7,xlim=c(0,1.5),col=c("blue","lightblue","orange","yellow","green"),main=title)

BarChart

forked from <a href='http://bl.ocks.org/ChristosT/'>ChristosT</a>'s block: <a href='http://bl.ocks.org/ChristosT/f73384946e17e4b1b46a'> CS 725 Information Visualization - VI3</a>

Similar vizzes