Attempting to put the "grammer of graphics" on top of the D3 library