 #       color: 'Letter'
 # }
 
-svl.plot {
-  selector: '.cont'
-  size:
-    width: 600
-    height: 600
-  dataSource:
-    data: data
-    removeNA: false
-  plot:
-    type: 'facet'
-    split: 'Number'
-    plot:
-      type: 'facet'
-      split: 'Letter'
-      x: 'Time'
-      color: 'Letter'
-      plot:
-        type: 'points'
-        y: 'ScoreA'
-}
+# svl.plot {
+#   selector: '.cont'
+#   size:
+#     width: 600
+#     height: 600
+#   dataSource:
+#     data: data
+#     removeNA: false
+#   plot:
+#     type: 'facet'
+#     split: 'Number'
+#     plot:
+#       type: 'facet'
+#       split: 'Letter'
+#       x: 'Time'
+#       color: 'Letter'
+#       plot:
+#         type: 'points'
+#         y: 'ScoreA'
+# }
 
 # Split by 'Number' [facet options: {direction: vertical}]
 # Split by 'Time' don't bucket [measure ScoreA]

  data = dataSource.data

  plots = {
    facet: (parent, size, data, {split, plot, x, y, color}) ->
      fsplit = acc(split)
      fx = acc(x)
      fy = acc(y)
      fcolor = acc(color)

      sel = parent.selectAll('g')
        .data((d,i) ->
            if typeof data is 'function'
              { data: myData, scales } = data.call(this,d,i)
            else
              myData = data
              scales = {}

            splitData = sac(myData, make_dimension(split), make_metric('$ident'))


  return column if typeof column is 'function'
  return (d) -> d[column]

cross_data_ctx = (data, scales, extra) ->
  newData = []
  for datum in data
    newData.push {
      d: datum
      s: scales
      e: extra
    }
  return newData

