Commit 5294f952 authored by Leo Pound Singer's avatar Leo Pound Singer

Color code by module

parent 33052f32
......@@ -56,7 +56,8 @@
{op: 'q3', field: 'value', as: 'time q3'}
],
groupby: ['key', 'name']
}
},
{calculate: 'split(datum.name, ".")[0]', as: 'module'}
],
layer: [
{
......@@ -88,7 +89,7 @@
title: null
}
},
color: {field: 'key', type: 'nominal'},
color: {field: 'module', type: 'nominal'},
}
},
{mark: 'rule', encoding: {x: {value: 300}}}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment