IV4
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 descriptionChristos Tsolakis
The scatterplot uses the y-coordinate as a position on a common scale to express magnitude(price) and the x-coordinate as spatial region channel to express identity (year). The difference of the proce throughout the years os cleary seen and thus discriminability is preserved.
- based on scatterplot d3 code from : http://bl.ocks.org/weiglemc/6185069
- dataset source http://www.nma.org/pdf/gold/his_gold_prices.pdf
The stacked barchart expresses the magnitude as area of each box and the identity as color hue. Discriminability is retained since the relative sizes betwwen the shares is effectively represented and easily distiguished.
- based on stack barchart from http://codepen.io/benlister/pen/bNeLQy
- data source http://www.statista.com/statistics/199359/market-share-of-wireless-carriers-in-the-us-by-subscriptions/
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")

#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)

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>