Building Analysis

Plot1:

Discussion:

We used the Square Footage as the horizontal axis and Senator Full Name as vertical axis for this first illustration of bar plot. We wanted to see the distribution of total building Square Footage for senators. We also put in the factors of ‘building status’ and ‘County’ to make the plot more informative.

We changed the code of “width”: “500”, “height”: “600” to rescale the plot in the originally JavaScript dictionary code to “.properties(width=500,height=600)” to fit in the “alt.Chart().mark_bar().encode()” instead of alt.Chart.from_dict() as a “pure” Altair plotting code. Besides, we choose our color scheme to be ‘set2’ from the vega color schemes since we want my colors for each building status group to be distinctive but also not too bright at the same time for aesthetic needs. We also used .configure_axis(labelFontSize=13,titleFontSize=20) to make the titles and labels in axis more readable.

We add in the factor of ‘building status’ as color and dropdown for the audience to choose and five further into. We also add ‘County’ as a tooltip result to give more information about the building and its senator.

Plot2:

Discussion:

For this visualization here, we are trying to plot a histogram between the ‘Year Constructed’ and ‘Total Floors’ variable for buildings to see if there exists an obvious pattern between these 2. We also add in the “Square Footage” of that building to help the audience read the plot more clearly.

We also pay attention to the rescale of the plot size and text size in titles and scales. We use “.properties(width=700,height=400)” and “.configure_axis(labelFontSize=20,titleFontSize=20)” to take care of the readability of the plot.

For this 2nd plot, we use tooltip to help the reader to read the tendency between “Year Constructed” and “Total Floors” more clearly with additional information about “Square Footage” as an extra visualizing figure.

Cover Image Credit: https://wall.alphacoders.com/big.php?i=277023