Weekly Assignment 12

INFO 3402, Spring 2021

The following is a bar chart that examines the frequency of wounds from the Crimean War.*


(*I think)

Here I simply changed the color of the bars to purple.

Code block explanation


						"mark": {
								"type":"bar",
								"color": "purple",
							},
					

Here I sorted the Cars data with facets.


				"encoding": {
							"x": {
								"field": "Horsepower",
								"type": "quantitative",
								"bin": {
									"maxbins": 15
								},
								"spacing": 10
							},
							"y": {
								"aggregate": "count", 
								"title": "Number of Cars",
								"type": "quantitative"
							},
							"column": {
								"field": "Origin",
								"type": "nominal"
							}
						}
						

From these graphs we can see that the USA produces higher horsepower cars.

Editor's Note

I'm unsure why my code blocks aren't live, if you can see the bug please let me know in the comments.