image
image
id
string
source_code
string
number_of_charts_in_dashboard
string
seed_data_name
string
seed_data_stats
string
ancestor_ids
string
provenance
string
provenance_step_types
string
provenance_step_costs
string
cost
string
revision_step
string
revision_step_function
string
parent_source_code
string
parent_id
string
is_consistent
string
CHANNEL_FIELD_SWAP
string
CHANNEL_FIELD_SHIFT
string
XY_SAME_QUANTITATIVE
string
XY_SAME_NOMINAL
string
XY_MEASURE_NAMES
string
COLOR_SAME_QUANTITATIVE
string
COLOR_DIFF_QUANTITATIVE
string
COLOR_SAME_NOMINAL
string
COLOR_DIFF_NOMINAL
string
COLOR_NOMINAL_VS_QUANTITATIVE
string
COLOR_CONSTANT_VS_NOMINAL
string
COLOR_CONSTANT_VS_QUANTITATIVE
string
SIZE_SAME_QUANTITATIVE
string
SIZE_NO_DIFF
string
SHAPE_SAME_NOMINAL
string
SHAPE_DIFF_NOMINAL
string
SHAPE_CONSTANT
string
source_code_vg
string
train_val_test
string
[{"mark":"point","data":{"name":"source"},"encoding":{"y":{"field":"yield","type":"quantitative"}}}]
{"hconcat":[{"mark":"point","data":{"url": "https://gist.githubusercontent.com/light-and-salt/087ad9739633be332cc7bc4cfd7c6f07/raw/a49b10d25bf9e373df2a7286f2dc58d573243a72/barley.json", "format": {"type":"json"}},"encoding":{"y":{"field":"yield","type":"quantitative"}}}]}
1
Barley
[{'name': 'site', 'originalIndex': 3, 'vlType': 'nominal', 'type': 'string', 'stats': {'type': 'string', 'unique': {'University Farm': 20, 'Waseca': 20, 'Morris': 20, 'Crookston': 20, 'Grand Rapids': 20, 'Duluth': 20}, 'count': 120, 'valid': 120, 'missing': 0, 'distinct': 6, 'min': 6, 'max': 15, 'mean': 9, 'stdev': 3.478626213914691, 'median': 7.5, 'q1': 6, 'q3': 12, 'modeskew': 0.43120470776650843, 'field': 'site'}, 'timeStats': {}, 'binStats': {}, 'index': 0}, {'name': 'variety', 'originalIndex': 1, 'vlType': 'nominal', 'type': 'string', 'stats': {'type': 'string', 'unique': {'Manchuria': 12, 'Glabron': 12, 'Svansota': 12, 'Velvet': 12, 'Trebi': 12, 'No. 457': 12, 'No. 462': 12, 'Peatland': 12, 'No. 475': 12, 'Wisconsin No. 38': 12}, 'count': 120, 'valid': 120, 'missing': 0, 'distinct': 10, 'min': 5, 'max': 16, 'mean': 8.000000000000004, 'stdev': 2.875570823858319, 'median': 7, 'q1': 7, 'q3': 8, 'modeskew': 0.34775704069018404, 'field': 'variety'}, 'timeStats': {}, 'binStats': {}, 'index': 1}, {'name': 'year', 'originalIndex': 2, 'vlType': 'nominal', 'type': 'integer', 'stats': {'type': 'number', 'unique': {'1931': 60, '1932': 60}, 'count': 120, 'valid': 120, 'missing': 0, 'distinct': 2, 'min': 1931, 'max': 1932, 'mean': 1931.4999999999995, 'stdev': 0.502096445253543, 'median': 1931.5, 'q1': 1931, 'q3': 1932, 'modeskew': -9.056972125282244e-13, 'field': 'year'}, 'timeStats': {}, 'binStats': {}, 'index': 2}, {'name': 'yield', 'originalIndex': 0, 'vlType': 'quantitative', 'type': 'number', 'stats': {'type': 'number', 'unique': {'27': 1, '30': 1, '32': 1, '38': 1, '47': 1, '48.86667': 1, '27.43334': 2, '39.93333': 1, '32.96667': 2, '28.96667': 1, '43.06666': 1, '55.2': 1, '28.76667': 1, '38.13333': 1, '29.13333': 1, '29.66667': 2, '35.13333': 2, '47.33333': 1, '25.76667': 1, '40.46667': 1, '25.7': 1, '39.9': 1, '50.23333': 1, '26.13333': 1, '41.33333': 1, '23.03333': 1, '26.3': 1, '36.56666': 1, '63.8333': 1, '43.76667': 1, '46.93333': 1, '29.76667': 1, '33.93333': 1, '43.26667': 1, '58.1': 1, '28.7': 1, '45.66667': 1, '32.16667': 1, '33.6': 1, '36.6': 1, '65.7667': 1, '30.36667': 1, '48.56666': 2, '24.93334': 1, '28.1': 1, '32.76667': 1, '29.86667': 1, '41.6': 1, '34.7': 1, '24.66667': 1, '46.76667': 1, '22.6': 1, '44.1': 1, '19.7': 1, '33.06666': 1, '39.3': 1, '58.8': 1, '29.46667': 1, '49.86667': 1, '34.46667': 1, '31.6': 1, '26.9': 1, '33.46667': 1, '34.36666': 1, '22.13333': 1, '22.56667': 1, '36.8': 1, '37.73333': 1, '26.16667': 1, '14.43333': 1, '25.86667': 1, '38.5': 1, '35.03333': 1, '20.63333': 2, '16.63333': 1, '22.23333': 1, '26.8': 1, '37.4': 1, '38.83333': 1, '32.06666': 1, '32.23333': 1, '22.46667': 1, '29.06667': 1, '49.2333': 1, '46.63333': 1, '41.83333': 1, '30.6': 1, '26.43334': 1, '42.2': 1, '43.53334': 1, '34.33333': 1, '19.46667': 1, '22.7': 1, '25.56667': 1, '44.7': 1, '30.53333': 1, '19.9': 1, '22.5': 1, '28.06667': 1, '36.03333': 1, '43.2': 1, '25.23333': 1, '26.76667': 1, '31.36667': 1, '41.26667': 1, '44.23333': 1, '32.13333': 1, '15.23333': 1, '27.36667': 1, '58.16667': 1, '47.16667': 1, '35.9': 1, '20.66667': 1, '29.33333': 1}, 'count': 120, 'valid': 120, 'missing': 0, 'distinct': 114, 'min': 14.43333, 'max': 65.7667, 'mean': 34.42055533333333, 'stdev': 10.334706218846057, 'median': 32.86667, 'q1': 26.875, 'q3': 41.3999975, 'modeskew': 0.15035602371547974, 'field': 'yield'}, 'timeStats': {}, 'binStats': {'5': {'type': 'number', 'unique': {'0': 6, '20': 81, '40': 31, '60': 2}, 'count': 120, 'valid': 120, 'missing': 0, 'distinct': 4, 'min': 0, 'max': 80, 'mean': 34.42055533333333, 'stdev': 10.334706218846057, 'median': 32.86667, 'q1': 26.875, 'q3': 41.3999975, 'modeskew': 0.15035602371547974, 'field': 'yield'}, '10': {'type': 'number', 'unique': {'10': 6, '20': 42, '30': 39, '40': 26, '50': 5, '60': 2}, 'count': 120, 'valid': 120, 'missing': 0, 'distinct': 6, 'min': 10, 'max': 70, 'mean': 34.42055533333333, 'stdev': 10.334706218846057, 'median': 32.86667, 'q1': 26.875, 'q3': 41.3999975, 'modeskew': 0.15035602371547974, 'field': 'yield'}, '20': {'type': 'number', 'unique': {'10': 1, '15': 5, '20': 13, '25': 29, '30': 22, '35': 17, '40': 14, '45': 12, '50': 1, '55': 4, '60': 1, '65': 1}, 'count': 120, 'valid': 120, 'missing': 0, 'distinct': 12, 'min': 10, 'max': 70, 'mean': 34.42055533333333, 'stdev': 10.334706218846057, 'median': 32.86667, 'q1': 26.875, 'q3': 41.3999975, 'modeskew': 0.15035602371547974, 'field': 'yield'}}, 'index': 3}]
['']
['Add a new empty chart to the dashboard. Add site to y channel. Add "yield" to y. Add yield to y channel.']
['REVISION_STEP_ADD_CHART']
[4]
4
REVISION_STEP_ADD_CHART
function addChart(parent, stepType, allFields, option) { if (stepType === void 0) { stepType = models_1.REVISION_STEP_ADD_CHART; } if (option === void 0) { option = 'random'; } var _a = parent.dashboard, chartIDs = _a.chartIDs, chartTitles = _a.chartTitles, vlSpecs = _a.vlSpecs; var enumerated = []; if (vlSpecs.length >= 5) { return enumerated; } // keep at most 5 charts in dashboard switch (option) { case 'empty': enumerated.push(__assign({}, parent.dashboard, { stepType: stepType, textDescription: NL_EMPTY[Math.floor(Math.random() * NL_EMPTY.length)], chartIDs: __spread(chartIDs, [chartIDs.length]), chartTitles: __spread(chartTitles, ["untitled"]), vlSpecs: __spread(vlSpecs, [models_1.DEFAULT_SPEC]), hasBeen: __assign({}, parent.dashboard.hasBeen) })); break; case 'random': var ENCODINGS = 3; var _b = getRandomChart(ENCODINGS, allFields), spec = _b.spec, provenance = _b.provenance; enumerated.push(__assign({}, parent.dashboard, { stepType: stepType, textDescription: provenance.join(' '), chartIDs: __spread(chartIDs, [chartIDs.length]), chartTitles: __spread(chartTitles, ["untitled"]), vlSpecs: __spread(vlSpecs, [spec]), hasBeen: __assign({}, parent.dashboard.hasBeen) })); break; default: break; } return enumerated; }
False
False
False
False
False
False
False
False
False
False
False
False
False
False
False
False
False
False
{'$schema': 'https://vega.github.io/schema/vega/v5.json', 'background': 'white', 'padding': 5, 'height': 200, 'data': [{'name': 'source_0', 'url': 'https://gist.githubusercontent.com/light-and-salt/087ad9739633be332cc7bc4cfd7c6f07/raw/a49b10d25bf9e373df2a7286f2dc58d573243a72/barley.json', 'format': {'type': 'json'}, 'transform': [{'type': 'filter', 'expr': 'isValid(datum["yield"]) && isFinite(+datum["yield"])'}]}], 'signals': [{'name': 'childWidth', 'value': 20}], 'layout': {'padding': 20, 'bounds': 'full', 'align': 'each'}, 'marks': [{'type': 'group', 'name': 'concat_0_group', 'style': 'cell', 'encode': {'update': {'width': {'signal': 'childWidth'}, 'height': {'signal': 'height'}}}, 'signals': [{'name': 'width', 'update': 'childWidth'}], 'marks': [{'name': 'concat_0_marks', 'type': 'symbol', 'style': ['point'], 'from': {'data': 'source_0'}, 'encode': {'update': {'opacity': {'value': 0.7}, 'fill': {'value': 'transparent'}, 'stroke': {'value': '#4c78a8'}, 'ariaRoleDescription': {'value': 'point'}, 'description': {'signal': '"yield: " + (format(datum["yield"], ""))'}, 'x': {'signal': 'childWidth', 'mult': 0.5}, 'y': {'scale': 'concat_0_y', 'field': 'yield'}}}}], 'axes': [{'scale': 'concat_0_y', 'orient': 'left', 'grid': True, 'tickCount': {'signal': 'ceil(height/40)'}, 'domain': False, 'labels': False, 'aria': False, 'maxExtent': 0, 'minExtent': 0, 'ticks': False, 'zindex': 0}, {'scale': 'concat_0_y', 'orient': 'left', 'grid': False, 'title': 'yield', 'labelOverlap': True, 'tickCount': {'signal': 'ceil(height/40)'}, 'zindex': 0}]}], 'scales': [{'name': 'concat_0_y', 'type': 'linear', 'domain': {'data': 'source_0', 'field': 'yield'}, 'range': [{'signal': 'height'}, 0], 'nice': True, 'zero': True}]}
train
[{"mark":"point","data":{"name":"source"},"encoding":{"y":{"field":"yield","type":"quantitative"},"color":{"value":"#e45756"}}}]
{"hconcat":[{"mark":"point","data":{"url": "https://gist.githubusercontent.com/light-and-salt/087ad9739633be332cc7bc4cfd7c6f07/raw/a49b10d25bf9e373df2a7286f2dc58d573243a72/barley.json", "format": {"type":"json"}},"encoding":{"y":{"field":"yield","type":"quantitative"},"color":{"value":"#e45756"}}}]}
1
Barley
[{'name': 'site', 'originalIndex': 3, 'vlType': 'nominal', 'type': 'string', 'stats': {'type': 'string', 'unique': {'University Farm': 20, 'Waseca': 20, 'Morris': 20, 'Crookston': 20, 'Grand Rapids': 20, 'Duluth': 20}, 'count': 120, 'valid': 120, 'missing': 0, 'distinct': 6, 'min': 6, 'max': 15, 'mean': 9, 'stdev': 3.478626213914691, 'median': 7.5, 'q1': 6, 'q3': 12, 'modeskew': 0.43120470776650843, 'field': 'site'}, 'timeStats': {}, 'binStats': {}, 'index': 0}, {'name': 'variety', 'originalIndex': 1, 'vlType': 'nominal', 'type': 'string', 'stats': {'type': 'string', 'unique': {'Manchuria': 12, 'Glabron': 12, 'Svansota': 12, 'Velvet': 12, 'Trebi': 12, 'No. 457': 12, 'No. 462': 12, 'Peatland': 12, 'No. 475': 12, 'Wisconsin No. 38': 12}, 'count': 120, 'valid': 120, 'missing': 0, 'distinct': 10, 'min': 5, 'max': 16, 'mean': 8.000000000000004, 'stdev': 2.875570823858319, 'median': 7, 'q1': 7, 'q3': 8, 'modeskew': 0.34775704069018404, 'field': 'variety'}, 'timeStats': {}, 'binStats': {}, 'index': 1}, {'name': 'year', 'originalIndex': 2, 'vlType': 'nominal', 'type': 'integer', 'stats': {'type': 'number', 'unique': {'1931': 60, '1932': 60}, 'count': 120, 'valid': 120, 'missing': 0, 'distinct': 2, 'min': 1931, 'max': 1932, 'mean': 1931.4999999999995, 'stdev': 0.502096445253543, 'median': 1931.5, 'q1': 1931, 'q3': 1932, 'modeskew': -9.056972125282244e-13, 'field': 'year'}, 'timeStats': {}, 'binStats': {}, 'index': 2}, {'name': 'yield', 'originalIndex': 0, 'vlType': 'quantitative', 'type': 'number', 'stats': {'type': 'number', 'unique': {'27': 1, '30': 1, '32': 1, '38': 1, '47': 1, '48.86667': 1, '27.43334': 2, '39.93333': 1, '32.96667': 2, '28.96667': 1, '43.06666': 1, '55.2': 1, '28.76667': 1, '38.13333': 1, '29.13333': 1, '29.66667': 2, '35.13333': 2, '47.33333': 1, '25.76667': 1, '40.46667': 1, '25.7': 1, '39.9': 1, '50.23333': 1, '26.13333': 1, '41.33333': 1, '23.03333': 1, '26.3': 1, '36.56666': 1, '63.8333': 1, '43.76667': 1, '46.93333': 1, '29.76667': 1, '33.93333': 1, '43.26667': 1, '58.1': 1, '28.7': 1, '45.66667': 1, '32.16667': 1, '33.6': 1, '36.6': 1, '65.7667': 1, '30.36667': 1, '48.56666': 2, '24.93334': 1, '28.1': 1, '32.76667': 1, '29.86667': 1, '41.6': 1, '34.7': 1, '24.66667': 1, '46.76667': 1, '22.6': 1, '44.1': 1, '19.7': 1, '33.06666': 1, '39.3': 1, '58.8': 1, '29.46667': 1, '49.86667': 1, '34.46667': 1, '31.6': 1, '26.9': 1, '33.46667': 1, '34.36666': 1, '22.13333': 1, '22.56667': 1, '36.8': 1, '37.73333': 1, '26.16667': 1, '14.43333': 1, '25.86667': 1, '38.5': 1, '35.03333': 1, '20.63333': 2, '16.63333': 1, '22.23333': 1, '26.8': 1, '37.4': 1, '38.83333': 1, '32.06666': 1, '32.23333': 1, '22.46667': 1, '29.06667': 1, '49.2333': 1, '46.63333': 1, '41.83333': 1, '30.6': 1, '26.43334': 1, '42.2': 1, '43.53334': 1, '34.33333': 1, '19.46667': 1, '22.7': 1, '25.56667': 1, '44.7': 1, '30.53333': 1, '19.9': 1, '22.5': 1, '28.06667': 1, '36.03333': 1, '43.2': 1, '25.23333': 1, '26.76667': 1, '31.36667': 1, '41.26667': 1, '44.23333': 1, '32.13333': 1, '15.23333': 1, '27.36667': 1, '58.16667': 1, '47.16667': 1, '35.9': 1, '20.66667': 1, '29.33333': 1}, 'count': 120, 'valid': 120, 'missing': 0, 'distinct': 114, 'min': 14.43333, 'max': 65.7667, 'mean': 34.42055533333333, 'stdev': 10.334706218846057, 'median': 32.86667, 'q1': 26.875, 'q3': 41.3999975, 'modeskew': 0.15035602371547974, 'field': 'yield'}, 'timeStats': {}, 'binStats': {'5': {'type': 'number', 'unique': {'0': 6, '20': 81, '40': 31, '60': 2}, 'count': 120, 'valid': 120, 'missing': 0, 'distinct': 4, 'min': 0, 'max': 80, 'mean': 34.42055533333333, 'stdev': 10.334706218846057, 'median': 32.86667, 'q1': 26.875, 'q3': 41.3999975, 'modeskew': 0.15035602371547974, 'field': 'yield'}, '10': {'type': 'number', 'unique': {'10': 6, '20': 42, '30': 39, '40': 26, '50': 5, '60': 2}, 'count': 120, 'valid': 120, 'missing': 0, 'distinct': 6, 'min': 10, 'max': 70, 'mean': 34.42055533333333, 'stdev': 10.334706218846057, 'median': 32.86667, 'q1': 26.875, 'q3': 41.3999975, 'modeskew': 0.15035602371547974, 'field': 'yield'}, '20': {'type': 'number', 'unique': {'10': 1, '15': 5, '20': 13, '25': 29, '30': 22, '35': 17, '40': 14, '45': 12, '50': 1, '55': 4, '60': 1, '65': 1}, 'count': 120, 'valid': 120, 'missing': 0, 'distinct': 12, 'min': 10, 'max': 70, 'mean': 34.42055533333333, 'stdev': 10.334706218846057, 'median': 32.86667, 'q1': 26.875, 'q3': 41.3999975, 'modeskew': 0.15035602371547974, 'field': 'yield'}}, 'index': 3}]
['', '[{"mark":"point","data":{"name":"source"},"encoding":{"y":{"field":"yield","type":"quantitative"}}}]']
['Add a new empty chart to the dashboard. Add site to y channel. Add "yield" to y. Add yield to y channel.', 'Use #e45756 as the default color.']
['REVISION_STEP_ADD_CHART', 'REVISION_STEP_SET_CONSTANT_COLOR_IN_ALL_CHARTS']
[4, 1]
5
REVISION_STEP_SET_CONSTANT_COLOR_IN_ALL_CHARTS
function enumSetConstantColorInAllCharts(parent, stepType, enumerate, sampleSize) { if (stepType === void 0) { stepType = models_1.REVISION_STEP_SET_CONSTANT_COLOR_IN_ALL_CHARTS; } if (enumerate === void 0) { enumerate = 'random'; } if (sampleSize === void 0) { sampleSize = models_1.SAMPLE_SIZE; } // if default color has already been set, don't set again // in this way, we only set default color once from root to each leaf if (parent.dashboard.hasBeen.setConstantColor) { return []; } var enumerated = []; switch (enumerate) { case 'common': for (var c in color_def_1.COMMON_CONSTANT_COLORS) { var color = color_def_1.COMMON_CONSTANT_COLORS[c]; var withColorSet = setConstantColorInAllCharts(parent, stepType, color); if (withColorSet) { enumerated.push(withColorSet); } } break; case 'random': for (var i = 0; i < sampleSize; i++) { var color = Object.values(color_def_1.TABLEAU20)[Math.floor(Math.random() * 20)]; var withColorSet = setConstantColorInAllCharts(parent, stepType, color); if (withColorSet) { enumerated.push(withColorSet); } } default: break; } return enumerated; }
[{"mark":"point","data":{"name":"source"},"encoding":{"y":{"field":"yield","type":"quantitative"}}}]
[{"mark":"point","data":{"name":"source"},"encoding":{"y":{"field":"yield","type":"quantitative"}}}]
True
False
False
False
False
False
False
False
False
False
False
False
False
False
False
False
False
False
{'$schema': 'https://vega.github.io/schema/vega/v5.json', 'background': 'white', 'padding': 5, 'height': 200, 'data': [{'name': 'source_0', 'url': 'https://gist.githubusercontent.com/light-and-salt/087ad9739633be332cc7bc4cfd7c6f07/raw/a49b10d25bf9e373df2a7286f2dc58d573243a72/barley.json', 'format': {'type': 'json'}, 'transform': [{'type': 'filter', 'expr': 'isValid(datum["yield"]) && isFinite(+datum["yield"])'}]}], 'signals': [{'name': 'childWidth', 'value': 20}], 'layout': {'padding': 20, 'bounds': 'full', 'align': 'each'}, 'marks': [{'type': 'group', 'name': 'concat_0_group', 'style': 'cell', 'encode': {'update': {'width': {'signal': 'childWidth'}, 'height': {'signal': 'height'}}}, 'signals': [{'name': 'width', 'update': 'childWidth'}], 'marks': [{'name': 'concat_0_marks', 'type': 'symbol', 'style': ['point'], 'from': {'data': 'source_0'}, 'encode': {'update': {'opacity': {'value': 0.7}, 'fill': {'value': 'transparent'}, 'stroke': {'value': '#e45756'}, 'ariaRoleDescription': {'value': 'point'}, 'description': {'signal': '"yield: " + (format(datum["yield"], ""))'}, 'x': {'signal': 'childWidth', 'mult': 0.5}, 'y': {'scale': 'concat_0_y', 'field': 'yield'}}}}], 'axes': [{'scale': 'concat_0_y', 'orient': 'left', 'grid': True, 'tickCount': {'signal': 'ceil(height/40)'}, 'domain': False, 'labels': False, 'aria': False, 'maxExtent': 0, 'minExtent': 0, 'ticks': False, 'zindex': 0}, {'scale': 'concat_0_y', 'orient': 'left', 'grid': False, 'title': 'yield', 'labelOverlap': True, 'tickCount': {'signal': 'ceil(height/40)'}, 'zindex': 0}]}], 'scales': [{'name': 'concat_0_y', 'type': 'linear', 'domain': {'data': 'source_0', 'field': 'yield'}, 'range': [{'signal': 'height'}, 0], 'nice': True, 'zero': True}]}
test
[{"mark":"point","data":{"name":"source"},"encoding":{"y":{"field":"yield","type":"quantitative"},"color":{"value":"#9e765f"}}},{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","description":"vl-template-550","data":{"name":"source"},"mark":{"type":"line","point":true},"encoding":{"x":{"field":"variety","type":"ordinal","title":"variety"},"y":{"aggregate":"mean","field":"yield","type":"quantitative","title":"yield"},"color":{"value":"#9e765f"}},"index":550,"title":""}]
{"hconcat":[{"mark":"point","data":{"url": "https://gist.githubusercontent.com/light-and-salt/087ad9739633be332cc7bc4cfd7c6f07/raw/a49b10d25bf9e373df2a7286f2dc58d573243a72/barley.json", "format": {"type":"json"}},"encoding":{"y":{"field":"yield","type":"quantitative"},"color":{"value":"#9e765f"}}},{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","description":"vl-template-550","data":{"url": "https://gist.githubusercontent.com/light-and-salt/087ad9739633be332cc7bc4cfd7c6f07/raw/a49b10d25bf9e373df2a7286f2dc58d573243a72/barley.json", "format": {"type":"json"}},"mark":{"type":"line","point":true},"encoding":{"x":{"field":"variety","type":"ordinal","title":"variety"},"y":{"aggregate":"mean","field":"yield","type":"quantitative","title":"yield"},"color":{"value":"#9e765f"}},"index":550,"title":""}]}
2
Barley
[{'name': 'site', 'originalIndex': 3, 'vlType': 'nominal', 'type': 'string', 'stats': {'type': 'string', 'unique': {'University Farm': 20, 'Waseca': 20, 'Morris': 20, 'Crookston': 20, 'Grand Rapids': 20, 'Duluth': 20}, 'count': 120, 'valid': 120, 'missing': 0, 'distinct': 6, 'min': 6, 'max': 15, 'mean': 9, 'stdev': 3.478626213914691, 'median': 7.5, 'q1': 6, 'q3': 12, 'modeskew': 0.43120470776650843, 'field': 'site'}, 'timeStats': {}, 'binStats': {}, 'index': 0}, {'name': 'variety', 'originalIndex': 1, 'vlType': 'nominal', 'type': 'string', 'stats': {'type': 'string', 'unique': {'Manchuria': 12, 'Glabron': 12, 'Svansota': 12, 'Velvet': 12, 'Trebi': 12, 'No. 457': 12, 'No. 462': 12, 'Peatland': 12, 'No. 475': 12, 'Wisconsin No. 38': 12}, 'count': 120, 'valid': 120, 'missing': 0, 'distinct': 10, 'min': 5, 'max': 16, 'mean': 8.000000000000004, 'stdev': 2.875570823858319, 'median': 7, 'q1': 7, 'q3': 8, 'modeskew': 0.34775704069018404, 'field': 'variety'}, 'timeStats': {}, 'binStats': {}, 'index': 1}, {'name': 'year', 'originalIndex': 2, 'vlType': 'nominal', 'type': 'integer', 'stats': {'type': 'number', 'unique': {'1931': 60, '1932': 60}, 'count': 120, 'valid': 120, 'missing': 0, 'distinct': 2, 'min': 1931, 'max': 1932, 'mean': 1931.4999999999995, 'stdev': 0.502096445253543, 'median': 1931.5, 'q1': 1931, 'q3': 1932, 'modeskew': -9.056972125282244e-13, 'field': 'year'}, 'timeStats': {}, 'binStats': {}, 'index': 2}, {'name': 'yield', 'originalIndex': 0, 'vlType': 'quantitative', 'type': 'number', 'stats': {'type': 'number', 'unique': {'27': 1, '30': 1, '32': 1, '38': 1, '47': 1, '48.86667': 1, '27.43334': 2, '39.93333': 1, '32.96667': 2, '28.96667': 1, '43.06666': 1, '55.2': 1, '28.76667': 1, '38.13333': 1, '29.13333': 1, '29.66667': 2, '35.13333': 2, '47.33333': 1, '25.76667': 1, '40.46667': 1, '25.7': 1, '39.9': 1, '50.23333': 1, '26.13333': 1, '41.33333': 1, '23.03333': 1, '26.3': 1, '36.56666': 1, '63.8333': 1, '43.76667': 1, '46.93333': 1, '29.76667': 1, '33.93333': 1, '43.26667': 1, '58.1': 1, '28.7': 1, '45.66667': 1, '32.16667': 1, '33.6': 1, '36.6': 1, '65.7667': 1, '30.36667': 1, '48.56666': 2, '24.93334': 1, '28.1': 1, '32.76667': 1, '29.86667': 1, '41.6': 1, '34.7': 1, '24.66667': 1, '46.76667': 1, '22.6': 1, '44.1': 1, '19.7': 1, '33.06666': 1, '39.3': 1, '58.8': 1, '29.46667': 1, '49.86667': 1, '34.46667': 1, '31.6': 1, '26.9': 1, '33.46667': 1, '34.36666': 1, '22.13333': 1, '22.56667': 1, '36.8': 1, '37.73333': 1, '26.16667': 1, '14.43333': 1, '25.86667': 1, '38.5': 1, '35.03333': 1, '20.63333': 2, '16.63333': 1, '22.23333': 1, '26.8': 1, '37.4': 1, '38.83333': 1, '32.06666': 1, '32.23333': 1, '22.46667': 1, '29.06667': 1, '49.2333': 1, '46.63333': 1, '41.83333': 1, '30.6': 1, '26.43334': 1, '42.2': 1, '43.53334': 1, '34.33333': 1, '19.46667': 1, '22.7': 1, '25.56667': 1, '44.7': 1, '30.53333': 1, '19.9': 1, '22.5': 1, '28.06667': 1, '36.03333': 1, '43.2': 1, '25.23333': 1, '26.76667': 1, '31.36667': 1, '41.26667': 1, '44.23333': 1, '32.13333': 1, '15.23333': 1, '27.36667': 1, '58.16667': 1, '47.16667': 1, '35.9': 1, '20.66667': 1, '29.33333': 1}, 'count': 120, 'valid': 120, 'missing': 0, 'distinct': 114, 'min': 14.43333, 'max': 65.7667, 'mean': 34.42055533333333, 'stdev': 10.334706218846057, 'median': 32.86667, 'q1': 26.875, 'q3': 41.3999975, 'modeskew': 0.15035602371547974, 'field': 'yield'}, 'timeStats': {}, 'binStats': {'5': {'type': 'number', 'unique': {'0': 6, '20': 81, '40': 31, '60': 2}, 'count': 120, 'valid': 120, 'missing': 0, 'distinct': 4, 'min': 0, 'max': 80, 'mean': 34.42055533333333, 'stdev': 10.334706218846057, 'median': 32.86667, 'q1': 26.875, 'q3': 41.3999975, 'modeskew': 0.15035602371547974, 'field': 'yield'}, '10': {'type': 'number', 'unique': {'10': 6, '20': 42, '30': 39, '40': 26, '50': 5, '60': 2}, 'count': 120, 'valid': 120, 'missing': 0, 'distinct': 6, 'min': 10, 'max': 70, 'mean': 34.42055533333333, 'stdev': 10.334706218846057, 'median': 32.86667, 'q1': 26.875, 'q3': 41.3999975, 'modeskew': 0.15035602371547974, 'field': 'yield'}, '20': {'type': 'number', 'unique': {'10': 1, '15': 5, '20': 13, '25': 29, '30': 22, '35': 17, '40': 14, '45': 12, '50': 1, '55': 4, '60': 1, '65': 1}, 'count': 120, 'valid': 120, 'missing': 0, 'distinct': 12, 'min': 10, 'max': 70, 'mean': 34.42055533333333, 'stdev': 10.334706218846057, 'median': 32.86667, 'q1': 26.875, 'q3': 41.3999975, 'modeskew': 0.15035602371547974, 'field': 'yield'}}, 'index': 3}]
['', '[{"mark":"point","data":{"name":"source"},"encoding":{"y":{"field":"yield","type":"quantitative"}}}]', '[{"mark":"point","data":{"name":"source"},"encoding":{"y":{"field":"yield","type":"quantitative"}}},{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","description":"vl-template-550","data":{"name":"source"},"mark":{"type":"line","point":true},"encoding":{"x":{"field":"variety","type":"ordinal","title":"variety"},"y":{"aggregate":"mean","field":"yield","type":"quantitative","title":"yield"},"color":{"field":"variety","type":"nominal","title":"variety"}},"index":550,"title":""}]']
['Add a new empty chart to the dashboard. Add site to y channel. Add "yield" to y. Add yield to y channel.', 'Use my data in vl-template-550. Remove date and use variety instead on x. Plug in "yield" Plug in "variety"', 'The dashboard should be #9e765f.']
['REVISION_STEP_ADD_CHART', 'REVISION_STEP_ADD_TEMPLATE', 'REVISION_STEP_SET_CONSTANT_COLOR_IN_ALL_CHARTS']
[4, 4, 1]
9
REVISION_STEP_SET_CONSTANT_COLOR_IN_ALL_CHARTS
function enumSetConstantColorInAllCharts(parent, stepType, enumerate, sampleSize) { if (stepType === void 0) { stepType = models_1.REVISION_STEP_SET_CONSTANT_COLOR_IN_ALL_CHARTS; } if (enumerate === void 0) { enumerate = 'random'; } if (sampleSize === void 0) { sampleSize = models_1.SAMPLE_SIZE; } // if default color has already been set, don't set again // in this way, we only set default color once from root to each leaf if (parent.dashboard.hasBeen.setConstantColor) { return []; } var enumerated = []; switch (enumerate) { case 'common': for (var c in color_def_1.COMMON_CONSTANT_COLORS) { var color = color_def_1.COMMON_CONSTANT_COLORS[c]; var withColorSet = setConstantColorInAllCharts(parent, stepType, color); if (withColorSet) { enumerated.push(withColorSet); } } break; case 'random': for (var i = 0; i < sampleSize; i++) { var color = Object.values(color_def_1.TABLEAU20)[Math.floor(Math.random() * 20)]; var withColorSet = setConstantColorInAllCharts(parent, stepType, color); if (withColorSet) { enumerated.push(withColorSet); } } default: break; } return enumerated; }
[{"mark":"point","data":{"name":"source"},"encoding":{"y":{"field":"yield","type":"quantitative"}}},{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","description":"vl-template-550","data":{"name":"source"},"mark":{"type":"line","point":true},"encoding":{"x":{"field":"variety","type":"ordinal","title":"variety"},"y":{"aggregate":"mean","field":"yield","type":"quantitative","title":"yield"},"color":{"field":"variety","type":"nominal","title":"variety"}},"index":550,"title":""}]
[{"mark":"point","data":{"name":"source"},"encoding":{"y":{"field":"yield","type":"quantitative"}}},{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","description":"vl-template-550","data":{"name":"source"},"mark":{"type":"line","point":true},"encoding":{"x":{"field":"variety","type":"ordinal","title":"variety"},"y":{"aggregate":"mean","field":"yield","type":"quantitative","title":"yield"},"color":{"field":"variety","type":"nominal","title":"variety"}},"index":550,"title":""}]
True
False
False
False
False
False
False
False
False
False
False
False
False
False
False
False
False
False
{'$schema': 'https://vega.github.io/schema/vega/v5.json', 'background': 'white', 'padding': 5, 'height': 200, 'data': [{'name': 'source_0', 'url': 'https://gist.githubusercontent.com/light-and-salt/087ad9739633be332cc7bc4cfd7c6f07/raw/a49b10d25bf9e373df2a7286f2dc58d573243a72/barley.json', 'format': {'type': 'json'}}, {'name': 'data_0', 'source': 'source_0', 'transform': [{'type': 'filter', 'expr': 'isValid(datum["yield"]) && isFinite(+datum["yield"])'}]}, {'name': 'data_1', 'source': 'source_0', 'transform': [{'type': 'aggregate', 'groupby': ['variety'], 'ops': ['mean'], 'fields': ['yield'], 'as': ['mean_yield']}]}, {'name': 'data_2', 'source': 'data_1', 'transform': [{'type': 'filter', 'expr': 'isValid(datum["mean_yield"]) && isFinite(+datum["mean_yield"])'}]}], 'signals': [{'name': 'concat_0_width', 'value': 20}, {'name': 'concat_1_x_step', 'value': 20}, {'name': 'concat_1_width', 'update': "bandspace(domain('concat_1_x').length, 1, 0.5) * concat_1_x_step"}], 'layout': {'padding': 20, 'bounds': 'full', 'align': 'each'}, 'marks': [{'type': 'group', 'name': 'concat_0_group', 'style': 'cell', 'encode': {'update': {'width': {'signal': 'concat_0_width'}, 'height': {'signal': 'height'}}}, 'signals': [{'name': 'width', 'update': 'concat_0_width'}], 'marks': [{'name': 'concat_0_marks', 'type': 'symbol', 'style': ['point'], 'from': {'data': 'data_0'}, 'encode': {'update': {'opacity': {'value': 0.7}, 'fill': {'value': 'transparent'}, 'stroke': {'value': '#9e765f'}, 'ariaRoleDescription': {'value': 'point'}, 'description': {'signal': '"yield: " + (format(datum["yield"], ""))'}, 'x': {'signal': 'concat_0_width', 'mult': 0.5}, 'y': {'scale': 'concat_0_y', 'field': 'yield'}}}}], 'axes': [{'scale': 'concat_0_y', 'orient': 'left', 'grid': True, 'tickCount': {'signal': 'ceil(height/40)'}, 'domain': False, 'labels': False, 'aria': False, 'maxExtent': 0, 'minExtent': 0, 'ticks': False, 'zindex': 0}, {'scale': 'concat_0_y', 'orient': 'left', 'grid': False, 'title': 'yield', 'labelOverlap': True, 'tickCount': {'signal': 'ceil(height/40)'}, 'zindex': 0}]}, {'type': 'group', 'name': 'concat_1_group', 'style': 'cell', 'encode': {'update': {'width': {'signal': 'concat_1_width'}, 'height': {'signal': 'height'}, 'description': {'value': 'vl-template-550'}}}, 'marks': [{'name': 'concat_1_layer_0_marks', 'type': 'line', 'style': ['line'], 'sort': {'field': 'datum["variety"]'}, 'from': {'data': 'data_1'}, 'encode': {'update': {'stroke': {'value': '#9e765f'}, 'description': {'signal': '"variety: " + (isValid(datum["variety"]) ? datum["variety"] : ""+datum["variety"]) + "; yield: " + (format(datum["mean_yield"], ""))'}, 'x': {'scale': 'concat_1_x', 'field': 'variety'}, 'y': {'scale': 'concat_1_y', 'field': 'mean_yield'}, 'defined': {'signal': 'isValid(datum["mean_yield"]) && isFinite(+datum["mean_yield"])'}}}}, {'name': 'concat_1_layer_1_marks', 'type': 'symbol', 'style': ['point'], 'from': {'data': 'data_2'}, 'encode': {'update': {'opacity': {'value': 1}, 'fill': {'value': '#9e765f'}, 'ariaRoleDescription': {'value': 'point'}, 'description': {'signal': '"variety: " + (isValid(datum["variety"]) ? datum["variety"] : ""+datum["variety"]) + "; yield: " + (format(datum["mean_yield"], ""))'}, 'x': {'scale': 'concat_1_x', 'field': 'variety'}, 'y': {'scale': 'concat_1_y', 'field': 'mean_yield'}}}}], 'axes': [{'scale': 'concat_1_y', 'orient': 'left', 'gridScale': 'concat_1_x', 'grid': True, 'tickCount': {'signal': 'ceil(height/40)'}, 'domain': False, 'labels': False, 'aria': False, 'maxExtent': 0, 'minExtent': 0, 'ticks': False, 'zindex': 0}, {'scale': 'concat_1_x', 'orient': 'bottom', 'grid': False, 'title': 'variety', 'labelAlign': 'right', 'labelAngle': 270, 'labelBaseline': 'middle', 'zindex': 0}, {'scale': 'concat_1_y', 'orient': 'left', 'grid': False, 'title': 'yield', 'labelOverlap': True, 'tickCount': {'signal': 'ceil(height/40)'}, 'zindex': 0}]}], 'scales': [{'name': 'concat_0_y', 'type': 'linear', 'domain': {'data': 'data_0', 'field': 'yield'}, 'range': [{'signal': 'height'}, 0], 'nice': True, 'zero': True}, {'name': 'concat_1_x', 'type': 'point', 'domain': {'fields': [{'data': 'data_1', 'field': 'variety'}, {'data': 'data_2', 'field': 'variety'}], 'sort': True}, 'range': {'step': {'signal': 'concat_1_x_step'}}, 'padding': 0.5}, {'name': 'concat_1_y', 'type': 'linear', 'domain': {'fields': [{'data': 'data_1', 'field': 'mean_yield'}, {'data': 'data_2', 'field': 'mean_yield'}]}, 'range': [{'signal': 'height'}, 0], 'nice': True, 'zero': True}]}
test
[{"mark":"point","data":{"name":"source"},"encoding":{"y":{"field":"year","type":"nominal"}}},{"data":{"name":"source"},"align":"all","$schema":"https://vega.github.io/schema/vega-lite/v5.json","resolve":{"scale":{"color":"independent"}},"columns":2,"concat":[{"mark":"point","encoding":{"x":{"field":"yield","type":"quantitative","title":"yield"},"y":{"field":"yield","type":"quantitative","title":"yield"},"color":{"field":"variety","type":"nominal","title":"variety"}},"name":"child__column_Origin"},{"mark":"point","encoding":{"x":{"field":"yield","type":"quantitative","title":"yield"},"y":{"field":"yield","type":"quantitative","title":"yield"},"color":{"field":"site","type":"nominal","title":"site"}},"name":"child__column_Cylinders"}],"index":132,"description":"vl-template-132","title":""},{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","data":{"name":"source"},"vconcat":[{"params":[{"name":"region","select":"interval","bind":"scales"}],"mark":"point","encoding":{"x":{"field":"yield","type":"quantitative","title":"yield"},"y":{"field":"yield","type":"quantitative","title":"yield"}}},{"mark":"point","encoding":{"x":{"field":"yield","type":"quantitative","title":"yield"},"y":{"field":"yield","type":"quantitative","title":"yield"}}}],"resolve":{"scale":{"x":"shared"}},"index":441,"description":"vl-template-441","title":""}]
{"hconcat":[{"mark":"point","data":{"url": "https://gist.githubusercontent.com/light-and-salt/087ad9739633be332cc7bc4cfd7c6f07/raw/a49b10d25bf9e373df2a7286f2dc58d573243a72/barley.json", "format": {"type":"json"}},"encoding":{"y":{"field":"year","type":"nominal"}}},{"data":{"url": "https://gist.githubusercontent.com/light-and-salt/087ad9739633be332cc7bc4cfd7c6f07/raw/a49b10d25bf9e373df2a7286f2dc58d573243a72/barley.json", "format": {"type":"json"}},"align":"all","$schema":"https://vega.github.io/schema/vega-lite/v5.json","resolve":{"scale":{"color":"independent"}},"columns":2,"concat":[{"mark":"point","encoding":{"x":{"field":"yield","type":"quantitative","title":"yield"},"y":{"field":"yield","type":"quantitative","title":"yield"},"color":{"field":"variety","type":"nominal","title":"variety"}},"name":"child__column_Origin"},{"mark":"point","encoding":{"x":{"field":"yield","type":"quantitative","title":"yield"},"y":{"field":"yield","type":"quantitative","title":"yield"},"color":{"field":"site","type":"nominal","title":"site"}},"name":"child__column_Cylinders"}],"index":132,"description":"vl-template-132","title":""},{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","data":{"url": "https://gist.githubusercontent.com/light-and-salt/087ad9739633be332cc7bc4cfd7c6f07/raw/a49b10d25bf9e373df2a7286f2dc58d573243a72/barley.json", "format": {"type":"json"}},"vconcat":[{"params":[{"name":"region","select":"interval","bind":"scales"}],"mark":"point","encoding":{"x":{"field":"yield","type":"quantitative","title":"yield"},"y":{"field":"yield","type":"quantitative","title":"yield"}}},{"mark":"point","encoding":{"x":{"field":"yield","type":"quantitative","title":"yield"},"y":{"field":"yield","type":"quantitative","title":"yield"}}}],"resolve":{"scale":{"x":"shared"}},"index":441,"description":"vl-template-441","title":""}]}
3
Barley
[{'name': 'site', 'originalIndex': 3, 'vlType': 'nominal', 'type': 'string', 'stats': {'type': 'string', 'unique': {'University Farm': 20, 'Waseca': 20, 'Morris': 20, 'Crookston': 20, 'Grand Rapids': 20, 'Duluth': 20}, 'count': 120, 'valid': 120, 'missing': 0, 'distinct': 6, 'min': 6, 'max': 15, 'mean': 9, 'stdev': 3.478626213914691, 'median': 7.5, 'q1': 6, 'q3': 12, 'modeskew': 0.43120470776650843, 'field': 'site'}, 'timeStats': {}, 'binStats': {}, 'index': 0}, {'name': 'variety', 'originalIndex': 1, 'vlType': 'nominal', 'type': 'string', 'stats': {'type': 'string', 'unique': {'Manchuria': 12, 'Glabron': 12, 'Svansota': 12, 'Velvet': 12, 'Trebi': 12, 'No. 457': 12, 'No. 462': 12, 'Peatland': 12, 'No. 475': 12, 'Wisconsin No. 38': 12}, 'count': 120, 'valid': 120, 'missing': 0, 'distinct': 10, 'min': 5, 'max': 16, 'mean': 8.000000000000004, 'stdev': 2.875570823858319, 'median': 7, 'q1': 7, 'q3': 8, 'modeskew': 0.34775704069018404, 'field': 'variety'}, 'timeStats': {}, 'binStats': {}, 'index': 1}, {'name': 'year', 'originalIndex': 2, 'vlType': 'nominal', 'type': 'integer', 'stats': {'type': 'number', 'unique': {'1931': 60, '1932': 60}, 'count': 120, 'valid': 120, 'missing': 0, 'distinct': 2, 'min': 1931, 'max': 1932, 'mean': 1931.4999999999995, 'stdev': 0.502096445253543, 'median': 1931.5, 'q1': 1931, 'q3': 1932, 'modeskew': -9.056972125282244e-13, 'field': 'year'}, 'timeStats': {}, 'binStats': {}, 'index': 2}, {'name': 'yield', 'originalIndex': 0, 'vlType': 'quantitative', 'type': 'number', 'stats': {'type': 'number', 'unique': {'27': 1, '30': 1, '32': 1, '38': 1, '47': 1, '48.86667': 1, '27.43334': 2, '39.93333': 1, '32.96667': 2, '28.96667': 1, '43.06666': 1, '55.2': 1, '28.76667': 1, '38.13333': 1, '29.13333': 1, '29.66667': 2, '35.13333': 2, '47.33333': 1, '25.76667': 1, '40.46667': 1, '25.7': 1, '39.9': 1, '50.23333': 1, '26.13333': 1, '41.33333': 1, '23.03333': 1, '26.3': 1, '36.56666': 1, '63.8333': 1, '43.76667': 1, '46.93333': 1, '29.76667': 1, '33.93333': 1, '43.26667': 1, '58.1': 1, '28.7': 1, '45.66667': 1, '32.16667': 1, '33.6': 1, '36.6': 1, '65.7667': 1, '30.36667': 1, '48.56666': 2, '24.93334': 1, '28.1': 1, '32.76667': 1, '29.86667': 1, '41.6': 1, '34.7': 1, '24.66667': 1, '46.76667': 1, '22.6': 1, '44.1': 1, '19.7': 1, '33.06666': 1, '39.3': 1, '58.8': 1, '29.46667': 1, '49.86667': 1, '34.46667': 1, '31.6': 1, '26.9': 1, '33.46667': 1, '34.36666': 1, '22.13333': 1, '22.56667': 1, '36.8': 1, '37.73333': 1, '26.16667': 1, '14.43333': 1, '25.86667': 1, '38.5': 1, '35.03333': 1, '20.63333': 2, '16.63333': 1, '22.23333': 1, '26.8': 1, '37.4': 1, '38.83333': 1, '32.06666': 1, '32.23333': 1, '22.46667': 1, '29.06667': 1, '49.2333': 1, '46.63333': 1, '41.83333': 1, '30.6': 1, '26.43334': 1, '42.2': 1, '43.53334': 1, '34.33333': 1, '19.46667': 1, '22.7': 1, '25.56667': 1, '44.7': 1, '30.53333': 1, '19.9': 1, '22.5': 1, '28.06667': 1, '36.03333': 1, '43.2': 1, '25.23333': 1, '26.76667': 1, '31.36667': 1, '41.26667': 1, '44.23333': 1, '32.13333': 1, '15.23333': 1, '27.36667': 1, '58.16667': 1, '47.16667': 1, '35.9': 1, '20.66667': 1, '29.33333': 1}, 'count': 120, 'valid': 120, 'missing': 0, 'distinct': 114, 'min': 14.43333, 'max': 65.7667, 'mean': 34.42055533333333, 'stdev': 10.334706218846057, 'median': 32.86667, 'q1': 26.875, 'q3': 41.3999975, 'modeskew': 0.15035602371547974, 'field': 'yield'}, 'timeStats': {}, 'binStats': {'5': {'type': 'number', 'unique': {'0': 6, '20': 81, '40': 31, '60': 2}, 'count': 120, 'valid': 120, 'missing': 0, 'distinct': 4, 'min': 0, 'max': 80, 'mean': 34.42055533333333, 'stdev': 10.334706218846057, 'median': 32.86667, 'q1': 26.875, 'q3': 41.3999975, 'modeskew': 0.15035602371547974, 'field': 'yield'}, '10': {'type': 'number', 'unique': {'10': 6, '20': 42, '30': 39, '40': 26, '50': 5, '60': 2}, 'count': 120, 'valid': 120, 'missing': 0, 'distinct': 6, 'min': 10, 'max': 70, 'mean': 34.42055533333333, 'stdev': 10.334706218846057, 'median': 32.86667, 'q1': 26.875, 'q3': 41.3999975, 'modeskew': 0.15035602371547974, 'field': 'yield'}, '20': {'type': 'number', 'unique': {'10': 1, '15': 5, '20': 13, '25': 29, '30': 22, '35': 17, '40': 14, '45': 12, '50': 1, '55': 4, '60': 1, '65': 1}, 'count': 120, 'valid': 120, 'missing': 0, 'distinct': 12, 'min': 10, 'max': 70, 'mean': 34.42055533333333, 'stdev': 10.334706218846057, 'median': 32.86667, 'q1': 26.875, 'q3': 41.3999975, 'modeskew': 0.15035602371547974, 'field': 'yield'}}, 'index': 3}]
['', '[{"mark":"point","data":{"name":"source"},"encoding":{"y":{"field":"yield","type":"quantitative"}}}]', '[{"mark":"point","data":{"name":"source"},"encoding":{"y":{"field":"year","type":"nominal"}}}]', '[{"mark":"point","data":{"name":"source"},"encoding":{"y":{"field":"year","type":"nominal"}}},{"data":{"name":"source"},"align":"all","$schema":"https://vega.github.io/schema/vega-lite/v5.json","resolve":{"scale":{"color":"independent"}},"columns":2,"concat":[{"mark":"point","encoding":{"x":{"field":"yield","type":"quantitative","title":"yield"},"y":{"field":"yield","type":"quantitative","title":"yield"},"color":{"field":"variety","type":"nominal","title":"variety"}},"name":"child__column_Origin"},{"mark":"point","encoding":{"x":{"field":"yield","type":"quantitative","title":"yield"},"y":{"field":"yield","type":"quantitative","title":"yield"},"color":{"field":"site","type":"nominal","title":"site"}},"name":"child__column_Cylinders"}],"index":132,"description":"vl-template-132","title":""}]']
['Add a new empty chart to the dashboard. Add site to y channel. Add "yield" to y. Add yield to y channel.', 'Add field "year" to chart 1\'s y channel.', 'Use my data in vl-template-132. Remove Horsepower and use yield instead on x. Plug in yield on y. Replace Origin with variety. Remove Horsepower and add yield instead. Replace Miles_per_Gallon with yield. Remove Cylinders and add site instead.', 'Plug in my data to vl-template-441. Plug in yield on x. Plug in "yield" Remove Horsepower and use yield instead on x. Replace field in y with yield.']
['REVISION_STEP_ADD_CHART', 'REVISION_STEP_ADD_FIELD', 'REVISION_STEP_ADD_TEMPLATE', 'REVISION_STEP_ADD_TEMPLATE']
[4, 2, 4, 4]
14
REVISION_STEP_ADD_TEMPLATE
function enumAddTemplate(parent, stepType, gallery, fields, enumerate, sampleSize) { if (stepType === void 0) { stepType = models_1.REVISION_STEP_ADD_TEMPLATE; } if (enumerate === void 0) { enumerate = 'random'; } if (sampleSize === void 0) { sampleSize = models_1.SAMPLE_SIZE; } var enumerated = []; switch (enumerate) { case 'random': for (var i = 0; i < sampleSize; i++) { var index = WORKING_TEMPLATES[Math.floor(Math.random() * WORKING_TEMPLATES.length)]; var templateWithProvenance = replaceAllFieldsInTemplate(gallery[index], index, fields); if (!templateWithProvenance) { continue; } if (templateWithProvenance.provenance.length <= 1) { continue; } // (hack): patch for empty template var withTemplateAdded = addTemplate(parent, stepType, templateWithProvenance); if (withTemplateAdded) { enumerated.push(withTemplateAdded); } } break; case 'all': for (var i = 0; i < WORKING_TEMPLATES.length; i++) { var templateWithProvenance = replaceAllFieldsInTemplate(gallery[i], i, fields); if (!templateWithProvenance) { continue; } var withTemplateAdded = addTemplate(parent, stepType, templateWithProvenance); if (withTemplateAdded) { enumerated.push(withTemplateAdded); } } break; default: break; } return enumerated; }
[{"mark":"point","data":{"name":"source"},"encoding":{"y":{"field":"year","type":"nominal"}}},{"data":{"name":"source"},"align":"all","$schema":"https://vega.github.io/schema/vega-lite/v5.json","resolve":{"scale":{"color":"independent"}},"columns":2,"concat":[{"mark":"point","encoding":{"x":{"field":"yield","type":"quantitative","title":"yield"},"y":{"field":"yield","type":"quantitative","title":"yield"},"color":{"field":"variety","type":"nominal","title":"variety"}},"name":"child__column_Origin"},{"mark":"point","encoding":{"x":{"field":"yield","type":"quantitative","title":"yield"},"y":{"field":"yield","type":"quantitative","title":"yield"},"color":{"field":"site","type":"nominal","title":"site"}},"name":"child__column_Cylinders"}],"index":132,"description":"vl-template-132","title":""}]
[{"mark":"point","data":{"name":"source"},"encoding":{"y":{"field":"year","type":"nominal"}}},{"data":{"name":"source"},"align":"all","$schema":"https://vega.github.io/schema/vega-lite/v5.json","resolve":{"scale":{"color":"independent"}},"columns":2,"concat":[{"mark":"point","encoding":{"x":{"field":"yield","type":"quantitative","title":"yield"},"y":{"field":"yield","type":"quantitative","title":"yield"},"color":{"field":"variety","type":"nominal","title":"variety"}},"name":"child__column_Origin"},{"mark":"point","encoding":{"x":{"field":"yield","type":"quantitative","title":"yield"},"y":{"field":"yield","type":"quantitative","title":"yield"},"color":{"field":"site","type":"nominal","title":"site"}},"name":"child__column_Cylinders"}],"index":132,"description":"vl-template-132","title":""}]
True
False
False
False
False
False
False
False
False
False
False
False
False
False
False
False
False
False
{'$schema': 'https://vega.github.io/schema/vega/v5.json', 'background': 'white', 'padding': 5, 'data': [{'name': 'region_store'}, {'name': 'source_0', 'url': 'https://gist.githubusercontent.com/light-and-salt/087ad9739633be332cc7bc4cfd7c6f07/raw/a49b10d25bf9e373df2a7286f2dc58d573243a72/barley.json', 'format': {'type': 'json'}}, {'name': 'data_0', 'source': 'source_0', 'transform': [{'type': 'filter', 'expr': 'isValid(datum["yield"]) && isFinite(+datum["yield"])'}]}], 'signals': [{'name': 'concat_0_width', 'value': 20}, {'name': 'concat_0_y_step', 'value': 20}, {'name': 'concat_0_height', 'update': "bandspace(domain('concat_0_y').length, 1, 0.5) * concat_0_y_step"}, {'name': 'concat_1_childWidth', 'value': 200}, {'name': 'concat_1_childHeight', 'value': 200}, {'name': 'concat_2_width', 'value': 200}, {'name': 'concat_2_childHeight', 'value': 200}, {'name': 'unit', 'value': {}, 'on': [{'events': 'pointermove', 'update': 'isTuple(group()) ? group() : unit'}]}, {'name': 'region', 'update': '{"yield": region_yield}'}, {'name': 'region_yield'}], 'layout': {'padding': 20, 'bounds': 'full', 'align': 'each'}, 'marks': [{'type': 'group', 'name': 'concat_0_group', 'style': 'cell', 'encode': {'update': {'width': {'signal': 'concat_0_width'}, 'height': {'signal': 'concat_0_height'}}}, 'signals': [{'name': 'width', 'update': 'concat_0_width'}], 'marks': [{'name': 'concat_0_marks', 'type': 'symbol', 'style': ['point'], 'interactive': False, 'from': {'data': 'source_0'}, 'encode': {'update': {'opacity': {'value': 0.7}, 'fill': {'value': 'transparent'}, 'stroke': {'value': '#4c78a8'}, 'ariaRoleDescription': {'value': 'point'}, 'description': {'signal': '"year: " + (isValid(datum["year"]) ? datum["year"] : ""+datum["year"])'}, 'x': {'signal': 'concat_0_width', 'mult': 0.5}, 'y': {'scale': 'concat_0_y', 'field': 'year'}}}}], 'axes': [{'scale': 'concat_0_y', 'orient': 'left', 'grid': False, 'title': 'year', 'zindex': 0}]}, {'type': 'group', 'name': 'concat_1_group', 'encode': {'update': {'description': {'value': 'vl-template-132'}}}, 'layout': {'padding': 20, 'columns': 2, 'bounds': 'full', 'align': 'all'}, 'marks': [{'type': 'group', 'name': 'child__column_Origin_group', 'style': 'cell', 'encode': {'update': {'width': {'signal': 'concat_1_childWidth'}, 'height': {'signal': 'concat_1_childHeight'}}}, 'marks': [{'name': 'child__column_Origin_marks', 'type': 'symbol', 'style': ['point'], 'interactive': False, 'from': {'data': 'data_0'}, 'encode': {'update': {'opacity': {'value': 0.7}, 'fill': {'value': 'transparent'}, 'stroke': {'scale': 'child__column_Origin_color', 'field': 'variety'}, 'ariaRoleDescription': {'value': 'point'}, 'description': {'signal': '"yield: " + (format(datum["yield"], "")) + "; variety: " + (isValid(datum["variety"]) ? datum["variety"] : ""+datum["variety"])'}, 'x': {'scale': 'child__column_Origin_x', 'field': 'yield'}, 'y': {'scale': 'child__column_Origin_y', 'field': 'yield'}}}}], 'axes': [{'scale': 'child__column_Origin_x', 'orient': 'bottom', 'gridScale': 'child__column_Origin_y', 'grid': True, 'tickCount': {'signal': 'ceil(concat_1_childWidth/40)'}, 'domain': False, 'labels': False, 'aria': False, 'maxExtent': 0, 'minExtent': 0, 'ticks': False, 'zindex': 0}, {'scale': 'child__column_Origin_y', 'orient': 'left', 'gridScale': 'child__column_Origin_x', 'grid': True, 'tickCount': {'signal': 'ceil(concat_1_childHeight/40)'}, 'domain': False, 'labels': False, 'aria': False, 'maxExtent': 0, 'minExtent': 0, 'ticks': False, 'zindex': 0}, {'scale': 'child__column_Origin_x', 'orient': 'bottom', 'grid': False, 'title': 'yield', 'labelFlush': True, 'labelOverlap': True, 'tickCount': {'signal': 'ceil(concat_1_childWidth/40)'}, 'zindex': 0}, {'scale': 'child__column_Origin_y', 'orient': 'left', 'grid': False, 'title': 'yield', 'labelOverlap': True, 'tickCount': {'signal': 'ceil(concat_1_childHeight/40)'}, 'zindex': 0}], 'legends': [{'title': 'variety', 'stroke': 'child__column_Origin_color', 'symbolType': 'circle', 'encode': {'symbols': {'update': {'fill': {'value': 'transparent'}, 'opacity': {'value': 0.7}}}}}]}, {'type': 'group', 'name': 'child__column_Cylinders_group', 'style': 'cell', 'encode': {'update': {'width': {'signal': 'concat_1_childWidth'}, 'height': {'signal': 'concat_1_childHeight'}}}, 'marks': [{'name': 'child__column_Cylinders_marks', 'type': 'symbol', 'style': ['point'], 'interactive': False, 'from': {'data': 'data_0'}, 'encode': {'update': {'opacity': {'value': 0.7}, 'fill': {'value': 'transparent'}, 'stroke': {'scale': 'child__column_Cylinders_color', 'field': 'site'}, 'ariaRoleDescription': {'value': 'point'}, 'description': {'signal': '"yield: " + (format(datum["yield"], "")) + "; site: " + (isValid(datum["site"]) ? datum["site"] : ""+datum["site"])'}, 'x': {'scale': 'child__column_Cylinders_x', 'field': 'yield'}, 'y': {'scale': 'child__column_Cylinders_y', 'field': 'yield'}}}}], 'axes': [{'scale': 'child__column_Cylinders_x', 'orient': 'bottom', 'gridScale': 'child__column_Cylinders_y', 'grid': True, 'tickCount': {'signal': 'ceil(concat_1_childWidth/40)'}, 'domain': False, 'labels': False, 'aria': False, 'maxExtent': 0, 'minExtent': 0, 'ticks': False, 'zindex': 0}, {'scale': 'child__column_Cylinders_y', 'orient': 'left', 'gridScale': 'child__column_Cylinders_x', 'grid': True, 'tickCount': {'signal': 'ceil(concat_1_childHeight/40)'}, 'domain': False, 'labels': False, 'aria': False, 'maxExtent': 0, 'minExtent': 0, 'ticks': False, 'zindex': 0}, {'scale': 'child__column_Cylinders_x', 'orient': 'bottom', 'grid': False, 'title': 'yield', 'labelFlush': True, 'labelOverlap': True, 'tickCount': {'signal': 'ceil(concat_1_childWidth/40)'}, 'zindex': 0}, {'scale': 'child__column_Cylinders_y', 'orient': 'left', 'grid': False, 'title': 'yield', 'labelOverlap': True, 'tickCount': {'signal': 'ceil(concat_1_childHeight/40)'}, 'zindex': 0}], 'legends': [{'title': 'site', 'stroke': 'child__column_Cylinders_color', 'symbolType': 'circle', 'encode': {'symbols': {'update': {'fill': {'value': 'transparent'}, 'opacity': {'value': 0.7}}}}}]}]}, {'type': 'group', 'name': 'concat_2_group', 'encode': {'update': {'description': {'value': 'vl-template-441'}}}, 'layout': {'padding': 20, 'columns': 1, 'bounds': 'full', 'align': 'each'}, 'marks': [{'type': 'group', 'name': 'concat_2_concat_0_group', 'style': 'cell', 'encode': {'update': {'width': {'signal': 'concat_2_width'}, 'height': {'signal': 'concat_2_childHeight'}}}, 'signals': [{'name': 'region_yield', 'on': [{'events': [{'source': 'view', 'type': 'dblclick'}], 'update': 'null'}, {'events': {'signal': 'region_translate_delta'}, 'update': 'panLinear(region_translate_anchor.extent_x, -region_translate_delta.x / concat_2_width)'}, {'events': {'signal': 'region_zoom_delta'}, 'update': 'zoomLinear(domain("concat_2_x"), region_zoom_anchor.x, region_zoom_delta)'}], 'push': 'outer'}, {'name': 'region_tuple', 'on': [{'events': [{'signal': 'region_yield'}], 'update': 'region_yield ? {unit: "concat_2_concat_0", fields: region_tuple_fields, values: [region_yield]} : null'}]}, {'name': 'region_tuple_fields', 'value': [{'field': 'yield', 'channel': 'x', 'type': 'R'}]}, {'name': 'region_translate_anchor', 'value': {}, 'on': [{'events': [{'source': 'scope', 'type': 'pointerdown'}], 'update': '{x: x(unit), y: y(unit), extent_x: domain("concat_2_x")}'}]}, {'name': 'region_translate_delta', 'value': {}, 'on': [{'events': [{'source': 'window', 'type': 'pointermove', 'consume': True, 'between': [{'source': 'scope', 'type': 'pointerdown'}, {'source': 'window', 'type': 'pointerup'}]}], 'update': '{x: region_translate_anchor.x - x(unit), y: region_translate_anchor.y - y(unit)}'}]}, {'name': 'region_zoom_anchor', 'on': [{'events': [{'source': 'scope', 'type': 'wheel', 'consume': True}], 'update': '{x: invert("concat_2_x", x(unit)), y: invert("concat_2_concat_0_y", y(unit))}'}]}, {'name': 'region_zoom_delta', 'on': [{'events': [{'source': 'scope', 'type': 'wheel', 'consume': True}], 'force': True, 'update': 'pow(1.001, event.deltaY * pow(16, event.deltaMode))'}]}, {'name': 'region_modify', 'on': [{'events': {'signal': 'region_tuple'}, 'update': 'modify("region_store", region_tuple, true)'}]}], 'marks': [{'name': 'concat_2_concat_0_marks', 'type': 'symbol', 'clip': True, 'style': ['point'], 'interactive': True, 'from': {'data': 'data_0'}, 'encode': {'update': {'opacity': {'value': 0.7}, 'fill': {'value': 'transparent'}, 'stroke': {'value': '#4c78a8'}, 'ariaRoleDescription': {'value': 'point'}, 'description': {'signal': '"yield: " + (format(datum["yield"], ""))'}, 'x': {'scale': 'concat_2_x', 'field': 'yield'}, 'y': {'scale': 'concat_2_concat_0_y', 'field': 'yield'}}}}], 'axes': [{'scale': 'concat_2_x', 'orient': 'bottom', 'gridScale': 'concat_2_concat_0_y', 'grid': True, 'tickCount': {'signal': 'ceil(concat_2_width/40)'}, 'domain': False, 'labels': False, 'aria': False, 'maxExtent': 0, 'minExtent': 0, 'ticks': False, 'zindex': 0}, {'scale': 'concat_2_concat_0_y', 'orient': 'left', 'gridScale': 'concat_2_x', 'grid': True, 'tickCount': {'signal': 'ceil(concat_2_childHeight/40)'}, 'domain': False, 'labels': False, 'aria': False, 'maxExtent': 0, 'minExtent': 0, 'ticks': False, 'zindex': 0}, {'scale': 'concat_2_x', 'orient': 'bottom', 'grid': False, 'title': 'yield', 'labelFlush': True, 'labelOverlap': True, 'tickCount': {'signal': 'ceil(concat_2_width/40)'}, 'zindex': 0}, {'scale': 'concat_2_concat_0_y', 'orient': 'left', 'grid': False, 'title': 'yield', 'labelOverlap': True, 'tickCount': {'signal': 'ceil(concat_2_childHeight/40)'}, 'zindex': 0}]}, {'type': 'group', 'name': 'concat_2_concat_1_group', 'style': 'cell', 'encode': {'update': {'width': {'signal': 'concat_2_width'}, 'height': {'signal': 'concat_2_childHeight'}}}, 'marks': [{'name': 'concat_2_concat_1_marks', 'type': 'symbol', 'clip': True, 'style': ['point'], 'interactive': False, 'from': {'data': 'data_0'}, 'encode': {'update': {'opacity': {'value': 0.7}, 'fill': {'value': 'transparent'}, 'stroke': {'value': '#4c78a8'}, 'ariaRoleDescription': {'value': 'point'}, 'description': {'signal': '"yield: " + (format(datum["yield"], ""))'}, 'x': {'scale': 'concat_2_x', 'field': 'yield'}, 'y': {'scale': 'concat_2_concat_1_y', 'field': 'yield'}}}}], 'axes': [{'scale': 'concat_2_x', 'orient': 'bottom', 'gridScale': 'concat_2_concat_1_y', 'grid': True, 'tickCount': {'signal': 'ceil(concat_2_width/40)'}, 'domain': False, 'labels': False, 'aria': False, 'maxExtent': 0, 'minExtent': 0, 'ticks': False, 'zindex': 0}, {'scale': 'concat_2_concat_1_y', 'orient': 'left', 'gridScale': 'concat_2_x', 'grid': True, 'tickCount': {'signal': 'ceil(concat_2_childHeight/40)'}, 'domain': False, 'labels': False, 'aria': False, 'maxExtent': 0, 'minExtent': 0, 'ticks': False, 'zindex': 0}, {'scale': 'concat_2_x', 'orient': 'bottom', 'grid': False, 'title': 'yield', 'labelFlush': True, 'labelOverlap': True, 'tickCount': {'signal': 'ceil(concat_2_width/40)'}, 'zindex': 0}, {'scale': 'concat_2_concat_1_y', 'orient': 'left', 'grid': False, 'title': 'yield', 'labelOverlap': True, 'tickCount': {'signal': 'ceil(concat_2_childHeight/40)'}, 'zindex': 0}]}]}], 'scales': [{'name': 'concat_0_y', 'type': 'point', 'domain': {'data': 'source_0', 'field': 'year', 'sort': True}, 'range': {'step': {'signal': 'concat_0_y_step'}}, 'padding': 0.5}, {'name': 'child__column_Origin_x', 'type': 'linear', 'domain': {'data': 'data_0', 'field': 'yield'}, 'range': [0, {'signal': 'concat_1_childWidth'}], 'nice': True, 'zero': True}, {'name': 'child__column_Origin_y', 'type': 'linear', 'domain': {'data': 'data_0', 'field': 'yield'}, 'range': [{'signal': 'concat_1_childHeight'}, 0], 'nice': True, 'zero': True}, {'name': 'child__column_Origin_color', 'type': 'ordinal', 'domain': {'data': 'data_0', 'field': 'variety', 'sort': True}, 'range': 'category'}, {'name': 'child__column_Cylinders_x', 'type': 'linear', 'domain': {'data': 'data_0', 'field': 'yield'}, 'range': [0, {'signal': 'concat_1_childWidth'}], 'nice': True, 'zero': True}, {'name': 'child__column_Cylinders_y', 'type': 'linear', 'domain': {'data': 'data_0', 'field': 'yield'}, 'range': [{'signal': 'concat_1_childHeight'}, 0], 'nice': True, 'zero': True}, {'name': 'child__column_Cylinders_color', 'type': 'ordinal', 'domain': {'data': 'data_0', 'field': 'site', 'sort': True}, 'range': 'category'}, {'name': 'concat_2_x', 'type': 'linear', 'domain': {'data': 'data_0', 'field': 'yield'}, 'domainRaw': {'signal': 'region["yield"]'}, 'range': [0, {'signal': 'concat_2_width'}], 'nice': True, 'zero': True}, {'name': 'concat_2_concat_0_y', 'type': 'linear', 'domain': {'data': 'data_0', 'field': 'yield'}, 'range': [{'signal': 'concat_2_childHeight'}, 0], 'nice': True, 'zero': True}, {'name': 'concat_2_concat_1_y', 'type': 'linear', 'domain': {'data': 'data_0', 'field': 'yield'}, 'range': [{'signal': 'concat_2_childHeight'}, 0], 'nice': True, 'zero': True}]}
test
[{"mark":"point","data":{"name":"source"},"encoding":{"y":{"field":"Genus","type":"nominal"},"x":{"field":"Gram_Staining","type":"nominal"},"color":{"value":"#f58518"}}},{"mark":"point","data":{"name":"source"},"encoding":{"y":{"field":"Bacteria","type":"nominal"},"color":{"value":"#f58518"},"shape":{"field":"Genus","type":"nominal"}}},{"mark":"point","data":{"name":"source"},"encoding":{"x":{"field":"Genus","type":"nominal"}}}]
{"hconcat":[{"mark":"point","data":{"url": "https://gist.githubusercontent.com/light-and-salt/2639efc67e4b0961c0f798b313d9eb6a/raw/957a093fe9bddccdec837e64777b8a2ec9f73ea5/burtin.json", "format": {"type":"json"}},"encoding":{"y":{"field":"Genus","type":"nominal"},"x":{"field":"Gram_Staining","type":"nominal"},"color":{"value":"#f58518"}}},{"mark":"point","data":{"url": "https://gist.githubusercontent.com/light-and-salt/2639efc67e4b0961c0f798b313d9eb6a/raw/957a093fe9bddccdec837e64777b8a2ec9f73ea5/burtin.json", "format": {"type":"json"}},"encoding":{"y":{"field":"Bacteria","type":"nominal"},"color":{"value":"#f58518"},"shape":{"field":"Genus","type":"nominal"}}},{"mark":"point","data":{"url": "https://gist.githubusercontent.com/light-and-salt/2639efc67e4b0961c0f798b313d9eb6a/raw/957a093fe9bddccdec837e64777b8a2ec9f73ea5/burtin.json", "format": {"type":"json"}},"encoding":{"x":{"field":"Genus","type":"nominal"}}}]}
3
Burtin
[{'name': 'Bacteria', 'originalIndex': 0, 'vlType': 'nominal', 'type': 'string', 'stats': {'type': 'string', 'unique': {'Aerobacter aerogenes': 1, 'Brucella abortus': 1, 'Brucella anthracis': 1, 'Diplococcus pneumoniae': 1, 'Escherichia coli': 1, 'Klebsiella pneumoniae': 1, 'Mycobacterium tuberculosis': 1, 'Proteus vulgaris': 1, 'Pseudomonas aeruginosa': 1, 'Salmonella (Eberthella) typhosa': 1, 'Salmonella schottmuelleri': 1, 'Staphylococcus albus': 1, 'Staphylococcus aureus': 1, 'Streptococcus fecalis': 1, 'Streptococcus hemolyticus': 1, 'Streptococcus viridans': 1}, 'count': 16, 'valid': 16, 'missing': 0, 'distinct': 16, 'min': 16, 'max': 31, 'mean': 21.375000000000004, 'stdev': 4.031128874149275, 'median': 21, 'q1': 19.5, 'q3': 22.75, 'modeskew': 0.09302605094190723, 'field': 'Bacteria'}, 'timeStats': {}, 'binStats': {}, 'index': 0}, {'name': 'Genus', 'originalIndex': 5, 'vlType': 'nominal', 'type': 'string', 'stats': {'type': 'string', 'unique': {'other': 9, 'Salmonella': 2, 'Staphylococcus': 2, 'Streptococcus': 3}, 'count': 16, 'valid': 16, 'missing': 0, 'distinct': 4, 'min': 5, 'max': 14, 'mean': 8.25, 'stdev': 3.958114029012639, 'median': 5, 'q1': 5, 'q3': 13, 'modeskew': 0.821098123039856, 'field': 'Genus'}, 'timeStats': {}, 'binStats': {}, 'index': 1}, {'name': 'Gram_Staining', 'originalIndex': 4, 'vlType': 'nominal', 'type': 'string', 'stats': {'type': 'string', 'unique': {'negative': 9, 'positive': 7}, 'count': 16, 'valid': 16, 'missing': 0, 'distinct': 2, 'min': 8, 'max': 8, 'mean': 8, 'stdev': 0, 'median': 8, 'q1': 8, 'q3': 8, 'modeskew': 0, 'field': 'Gram_Staining'}, 'timeStats': {}, 'binStats': {}, 'index': 2}, {'name': 'Neomycin', 'originalIndex': 3, 'vlType': 'quantitative', 'type': 'number', 'stats': {'type': 'number', 'unique': {'1': 1, '2': 1, '10': 2, '40': 1, '1.6': 1, '0.02': 1, '0.007': 1, '0.1': 3, '0.4': 1, '0.008': 1, '0.09': 1, '0.001': 2}, 'count': 16, 'valid': 16, 'missing': 0, 'distinct': 12, 'min': 0.001, 'max': 40, 'mean': 4.0891874999999995, 'stdev': 10.13316450880474, 'median': 0.1, 'q1': 0.017, 'q3': 1.7000000000000002, 'modeskew': 0.39367637785153703, 'field': 'Neomycin'}, 'timeStats': {}, 'binStats': {'5': {'type': 'number', 'unique': {'0': 13, '10': 2, '40': 1}, 'count': 16, 'valid': 16, 'missing': 0, 'distinct': 4, 'min': 0, 'max': 40, 'mean': 4.0891874999999995, 'stdev': 10.13316450880474, 'median': 0.1, 'q1': 0.017, 'q3': 1.7000000000000002, 'modeskew': 0.39367637785153703, 'field': 'Neomycin'}, '10': {'type': 'number', 'unique': {'0': 13, '10': 2, '40': 1}, 'count': 16, 'valid': 16, 'missing': 0, 'distinct': 8, 'min': 0, 'max': 40, 'mean': 4.0891874999999995, 'stdev': 10.13316450880474, 'median': 0.1, 'q1': 0.017, 'q3': 1.7000000000000002, 'modeskew': 0.39367637785153703, 'field': 'Neomycin'}, '20': {'type': 'number', 'unique': {'0': 12, '2': 1, '10': 2, '40': 1}, 'count': 16, 'valid': 16, 'missing': 0, 'distinct': 20, 'min': 0, 'max': 40, 'mean': 4.0891874999999995, 'stdev': 10.13316450880474, 'median': 0.1, 'q1': 0.017, 'q3': 1.7000000000000002, 'modeskew': 0.39367637785153703, 'field': 'Neomycin'}}, 'index': 3}, {'name': 'Penicilin', 'originalIndex': 1, 'vlType': 'quantitative', 'type': 'number', 'stats': {'type': 'number', 'unique': {'1': 3, '3': 1, '10': 1, '100': 1, '800': 1, '850': 2, '870': 1, '0.001': 2, '0.005': 2, '0.007': 1, '0.03': 1}, 'count': 16, 'valid': 16, 'missing': 0, 'distinct': 11, 'min': 0.001, 'max': 870, 'mean': 217.8780625, 'stdev': 373.49506012805915, 'median': 1, 'q1': 0.006500000000000001, 'q3': 275, 'modeskew': 0.5806718365314916, 'field': 'Penicilin'}, 'timeStats': {}, 'binStats': {'5': {'type': 'number', 'unique': {'0': 12, '800': 4}, 'count': 16, 'valid': 16, 'missing': 0, 'distinct': 5, 'min': 0, 'max': 1000, 'mean': 217.8780625, 'stdev': 373.49506012805915, 'median': 1, 'q1': 0.006500000000000001, 'q3': 275, 'modeskew': 0.5806718365314916, 'field': 'Penicilin'}, '10': {'type': 'number', 'unique': {'0': 11, '100': 1, '800': 4}, 'count': 16, 'valid': 16, 'missing': 0, 'distinct': 9, 'min': 0, 'max': 900, 'mean': 217.8780625, 'stdev': 373.49506012805915, 'median': 1, 'q1': 0.006500000000000001, 'q3': 275, 'modeskew': 0.5806718365314916, 'field': 'Penicilin'}, '20': {'type': 'number', 'unique': {'0': 11, '100': 1, '800': 1, '850': 3}, 'count': 16, 'valid': 16, 'missing': 0, 'distinct': 18, 'min': 0, 'max': 900, 'mean': 217.8780625, 'stdev': 373.49506012805915, 'median': 1, 'q1': 0.006500000000000001, 'q3': 275, 'modeskew': 0.5806718365314916, 'field': 'Penicilin'}}, 'index': 4}, {'name': 'Streptomycin', 'originalIndex': 2, 'vlType': 'quantitative', 'type': 'number', 'stats': {'type': 'number', 'unique': {'1': 2, '2': 2, '5': 1, '10': 1, '11': 1, '14': 1, '0.01': 1, '0.4': 2, '1.2': 1, '0.1': 2, '0.8': 1, '0.03': 1}, 'count': 16, 'valid': 16, 'missing': 0, 'distinct': 12, 'min': 0.01, 'max': 14, 'mean': 3.065, 'stdev': 4.5026910472146175, 'median': 1, 'q1': 0.32500000000000007, 'q3': 2.75, 'modeskew': 0.4586146325267902, 'field': 'Streptomycin'}, 'timeStats': {}, 'binStats': {'5': {'type': 'number', 'unique': {'0': 12, '5': 1, '10': 3}, 'count': 16, 'valid': 16, 'missing': 0, 'distinct': 3, 'min': 0, 'max': 15, 'mean': 3.065, 'stdev': 4.5026910472146175, 'median': 1, 'q1': 0.32500000000000007, 'q3': 2.75, 'modeskew': 0.4586146325267902, 'field': 'Streptomycin'}, '10': {'type': 'number', 'unique': {'0': 10, '2': 2, '4': 1, '10': 2, '14': 1}, 'count': 16, 'valid': 16, 'missing': 0, 'distinct': 7, 'min': 0, 'max': 14, 'mean': 3.065, 'stdev': 4.5026910472146175, 'median': 1, 'q1': 0.32500000000000007, 'q3': 2.75, 'modeskew': 0.4586146325267902, 'field': 'Streptomycin'}, '20': {'type': 'number', 'unique': {'0': 7, '1': 3, '2': 2, '5': 1, '10': 1, '11': 1, '14': 1}, 'count': 16, 'valid': 16, 'missing': 0, 'distinct': 14, 'min': 0, 'max': 14, 'mean': 3.065, 'stdev': 4.5026910472146175, 'median': 1, 'q1': 0.32500000000000007, 'q3': 2.75, 'modeskew': 0.4586146325267902, 'field': 'Streptomycin'}}, 'index': 5}]
['', '[{"mark":"point","data":{"name":"source"},"encoding":{"y":{"field":"Genus","type":"nominal"},"x":{"field":"Gram_Staining","type":"nominal"}}}]', '[{"mark":"point","data":{"name":"source"},"encoding":{"y":{"field":"Genus","type":"nominal"},"x":{"field":"Gram_Staining","type":"nominal"}}},{"mark":"point","data":{"name":"source"},"encoding":{"y":{"field":"Genus","type":"nominal"}}}]', '[{"mark":"point","data":{"name":"source"},"encoding":{"y":{"field":"Genus","type":"nominal"},"x":{"field":"Gram_Staining","type":"nominal"},"color":{"value":"#f58518"}}},{"mark":"point","data":{"name":"source"},"encoding":{"y":{"field":"Genus","type":"nominal"},"color":{"value":"#f58518"}}}]', '[{"mark":"point","data":{"name":"source"},"encoding":{"y":{"field":"Genus","type":"nominal"},"x":{"field":"Gram_Staining","type":"nominal"},"color":{"value":"#f58518"}}},{"mark":"point","data":{"name":"source"},"encoding":{"y":{"field":"Genus","type":"nominal"},"color":{"value":"#f58518"}}},{"mark":"point","data":{"name":"source"},"encoding":{"x":{"field":"Genus","type":"nominal"}}}]', '[{"mark":"point","data":{"name":"source"},"encoding":{"y":{"field":"Genus","type":"nominal"},"x":{"field":"Gram_Staining","type":"nominal"},"color":{"value":"#f58518"}}},{"mark":"point","data":{"name":"source"},"encoding":{"y":{"field":"Bacteria","type":"nominal"},"color":{"value":"#f58518"}}},{"mark":"point","data":{"name":"source"},"encoding":{"x":{"field":"Genus","type":"nominal"}}}]']
['Add a new chart with no data to the dashboard. Add Bacteria to y channel. Add Genus to y. Add "Gram_Staining" to x.', 'Add a new chart to the dashboard. Add "Genus" to y. Add Streptomycin to y channel. Add field "Genus" to y.', 'Use #f58518 as the default color.', 'Append a new chart to the dashboard. Add field "Gram_Staining" to x. Add field "Neomycin" to x. Add field "Genus" to x channel.', 'Remove Genus in chart 2 and add Bacteria instead.', 'In chart 2, channel shape, add Genus.']
['REVISION_STEP_ADD_CHART', 'REVISION_STEP_ADD_CHART', 'REVISION_STEP_SET_CONSTANT_COLOR_IN_ALL_CHARTS', 'REVISION_STEP_ADD_CHART', 'REVISION_STEP_REPLACE_FIELD', 'REVISION_STEP_ADD_FIELD']
[4, 4, 1, 4, 3, 2]
18
REVISION_STEP_ADD_FIELD
function enumAddField(parent, stepType, allFields, enumerate, sampleSize) { if (stepType === void 0) { stepType = models_1.REVISION_STEP_ADD_FIELD; } if (enumerate === void 0) { enumerate = 'random'; } if (sampleSize === void 0) { sampleSize = models_1.SAMPLE_SIZE; } var enumerated = []; var allConsistencySpecs = parent.consistencySpecs; var allChannels = ['x', 'y', 'color', 'size', 'shape']; switch (enumerate) { case 'all': allFields.all.forEach(function (field) { allConsistencySpecs.forEach(function (cSpec, index) { allChannels.forEach(function (channel) { var withFieldAdded = addField(parent.dashboard, cSpec, index, stepType, field, channel); if (withFieldAdded) { enumerated.push(withFieldAdded); } }); }); }); break; case 'random': for (var i = 0; i < sampleSize; i++) { var field = allFields.all[Math.floor(Math.random() * allFields.all.length)]; var index = Math.floor(Math.random() * allConsistencySpecs.length); if ((parent.dashboard.vlSpecs[index].description || '').startsWith('vl-template-')) { continue; } // skip template var cSpec = allConsistencySpecs[index]; var channelPool = channel_field_1.getChannelPool(cSpec.channelFieldMap); var channel = channelPool[Math.floor(Math.random() * channelPool.length)]; var withFieldAdded = addField(parent.dashboard, cSpec, index, stepType, field, channel); if (withFieldAdded) { enumerated.push(withFieldAdded); } } break; case 'nominal': case 'quantitative': default: break; } return enumerated; }
[{"mark":"point","data":{"name":"source"},"encoding":{"y":{"field":"Genus","type":"nominal"},"x":{"field":"Gram_Staining","type":"nominal"},"color":{"value":"#f58518"}}},{"mark":"point","data":{"name":"source"},"encoding":{"y":{"field":"Bacteria","type":"nominal"},"color":{"value":"#f58518"}}},{"mark":"point","data":{"name":"source"},"encoding":{"x":{"field":"Genus","type":"nominal"}}}]
[{"mark":"point","data":{"name":"source"},"encoding":{"y":{"field":"Genus","type":"nominal"},"x":{"field":"Gram_Staining","type":"nominal"},"color":{"value":"#f58518"}}},{"mark":"point","data":{"name":"source"},"encoding":{"y":{"field":"Bacteria","type":"nominal"},"color":{"value":"#f58518"}}},{"mark":"point","data":{"name":"source"},"encoding":{"x":{"field":"Genus","type":"nominal"}}}]
False
False
True
False
False
False
False
False
False
False
False
False
False
False
False
False
False
True
{'$schema': 'https://vega.github.io/schema/vega/v5.json', 'background': 'white', 'padding': 5, 'data': [{'name': 'source_0', 'url': 'https://gist.githubusercontent.com/light-and-salt/2639efc67e4b0961c0f798b313d9eb6a/raw/957a093fe9bddccdec837e64777b8a2ec9f73ea5/burtin.json', 'format': {'type': 'json'}}], 'signals': [{'name': 'concat_0_x_step', 'value': 20}, {'name': 'concat_0_width', 'update': "bandspace(domain('concat_0_x').length, 1, 0.5) * concat_0_x_step"}, {'name': 'concat_0_y_step', 'value': 20}, {'name': 'concat_0_height', 'update': "bandspace(domain('concat_0_y').length, 1, 0.5) * concat_0_y_step"}, {'name': 'concat_1_width', 'value': 20}, {'name': 'concat_1_y_step', 'value': 20}, {'name': 'concat_1_height', 'update': "bandspace(domain('concat_1_y').length, 1, 0.5) * concat_1_y_step"}, {'name': 'concat_2_x_step', 'value': 20}, {'name': 'concat_2_width', 'update': "bandspace(domain('concat_2_x').length, 1, 0.5) * concat_2_x_step"}, {'name': 'concat_2_height', 'value': 20}], 'layout': {'padding': 20, 'bounds': 'full', 'align': 'each'}, 'marks': [{'type': 'group', 'name': 'concat_0_group', 'style': 'cell', 'encode': {'update': {'width': {'signal': 'concat_0_width'}, 'height': {'signal': 'concat_0_height'}}}, 'marks': [{'name': 'concat_0_marks', 'type': 'symbol', 'style': ['point'], 'from': {'data': 'source_0'}, 'encode': {'update': {'opacity': {'value': 0.7}, 'fill': {'value': 'transparent'}, 'stroke': {'value': '#f58518'}, 'ariaRoleDescription': {'value': 'point'}, 'description': {'signal': '"Gram_Staining: " + (isValid(datum["Gram_Staining"]) ? datum["Gram_Staining"] : ""+datum["Gram_Staining"]) + "; Genus: " + (isValid(datum["Genus"]) ? datum["Genus"] : ""+datum["Genus"])'}, 'x': {'scale': 'concat_0_x', 'field': 'Gram_Staining'}, 'y': {'scale': 'concat_0_y', 'field': 'Genus'}}}}], 'axes': [{'scale': 'concat_0_x', 'orient': 'bottom', 'grid': False, 'title': 'Gram_Staining', 'labelAlign': 'right', 'labelAngle': 270, 'labelBaseline': 'middle', 'zindex': 0}, {'scale': 'concat_0_y', 'orient': 'left', 'grid': False, 'title': 'Genus', 'zindex': 0}]}, {'type': 'group', 'name': 'concat_1_group', 'style': 'cell', 'encode': {'update': {'width': {'signal': 'concat_1_width'}, 'height': {'signal': 'concat_1_height'}}}, 'signals': [{'name': 'width', 'update': 'concat_1_width'}], 'marks': [{'name': 'concat_1_marks', 'type': 'symbol', 'style': ['point'], 'from': {'data': 'source_0'}, 'encode': {'update': {'opacity': {'value': 0.7}, 'fill': {'value': 'transparent'}, 'stroke': {'value': '#f58518'}, 'ariaRoleDescription': {'value': 'point'}, 'description': {'signal': '"Bacteria: " + (isValid(datum["Bacteria"]) ? datum["Bacteria"] : ""+datum["Bacteria"]) + "; Genus: " + (isValid(datum["Genus"]) ? datum["Genus"] : ""+datum["Genus"])'}, 'x': {'signal': 'concat_1_width', 'mult': 0.5}, 'y': {'scale': 'concat_1_y', 'field': 'Bacteria'}, 'shape': {'scale': 'shape', 'field': 'Genus'}}}}], 'axes': [{'scale': 'concat_1_y', 'orient': 'left', 'grid': False, 'title': 'Bacteria', 'zindex': 0}]}, {'type': 'group', 'name': 'concat_2_group', 'style': 'cell', 'encode': {'update': {'width': {'signal': 'concat_2_width'}, 'height': {'signal': 'concat_2_height'}}}, 'signals': [{'name': 'height', 'update': 'concat_2_height'}], 'marks': [{'name': 'concat_2_marks', 'type': 'symbol', 'style': ['point'], 'from': {'data': 'source_0'}, 'encode': {'update': {'opacity': {'value': 0.7}, 'fill': {'value': 'transparent'}, 'stroke': {'value': '#4c78a8'}, 'ariaRoleDescription': {'value': 'point'}, 'description': {'signal': '"Genus: " + (isValid(datum["Genus"]) ? datum["Genus"] : ""+datum["Genus"])'}, 'x': {'scale': 'concat_2_x', 'field': 'Genus'}, 'y': {'signal': 'concat_2_height', 'mult': 0.5}}}}], 'axes': [{'scale': 'concat_2_x', 'orient': 'bottom', 'grid': False, 'title': 'Genus', 'labelAlign': 'right', 'labelAngle': 270, 'labelBaseline': 'middle', 'zindex': 0}]}], 'scales': [{'name': 'shape', 'type': 'ordinal', 'domain': {'data': 'source_0', 'field': 'Genus', 'sort': True}, 'range': 'symbol'}, {'name': 'concat_0_x', 'type': 'point', 'domain': {'data': 'source_0', 'field': 'Gram_Staining', 'sort': True}, 'range': {'step': {'signal': 'concat_0_x_step'}}, 'padding': 0.5}, {'name': 'concat_0_y', 'type': 'point', 'domain': {'data': 'source_0', 'field': 'Genus', 'sort': True}, 'range': {'step': {'signal': 'concat_0_y_step'}}, 'padding': 0.5}, {'name': 'concat_1_y', 'type': 'point', 'domain': {'data': 'source_0', 'field': 'Bacteria', 'sort': True}, 'range': {'step': {'signal': 'concat_1_y_step'}}, 'padding': 0.5}, {'name': 'concat_2_x', 'type': 'point', 'domain': {'data': 'source_0', 'field': 'Genus', 'sort': True}, 'range': {'step': {'signal': 'concat_2_x_step'}}, 'padding': 0.5}], 'legends': [{'shape': 'shape', 'symbolType': 'circle', 'title': 'Genus', 'encode': {'symbols': {'update': {'fill': {'value': 'transparent'}, 'stroke': {'value': '#f58518'}, 'opacity': {'value': 0.7}}}}}]}
train
[{"mark":"point","data":{"name":"source"},"encoding":{"x":{"field":"sex","type":"nominal"},"color":{"value":"#d67195"}}},{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","data":{"name":"source"},"layer":[{"mark":"errorband","encoding":{"y":{"field":"people","type":"quantitative","scale":{"zero":false},"title":"people"},"y2":{"field":"ci0"},"x":{"field":"Year","timeUnit":"year"}}},{"mark":"line","encoding":{"y":{"field":"people","type":"quantitative","title":"people"},"x":{"field":"sex","type":"ordinal","title":"sex"}}}],"index":483,"description":"vl-template-483","title":"","encoding":{"color":{"value":"#d67195"}}},{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","description":"vl-template-321","data":{"name":"source"},"mark":"boxplot","encoding":{"x":{"field":"sex","type":"nominal","axis":{"labelAngle":0,"title":"sex"},"title":"sex"},"y":{"field":"people","type":"quantitative","title":"people"},"color":{"value":"#d67195"}},"index":321,"title":""},{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","data":{"name":"source"},"repeat":{"row":["Horsepower","Acceleration","Miles_per_Gallon"],"column":["Miles_per_Gallon","Acceleration","Horsepower"]},"spec":{"params":[{"name":"grid","select":"interval","bind":"scales"}],"mark":"point","encoding":{"x":{"field":"people","type":"quantitative","title":"people"},"y":{"field":"people","type":"quantitative","axis":{"minExtent":30,"title":"people"},"title":"people"},"color":{"field":"age","type":"nominal","title":"age"}}},"index":440,"description":"vl-template-440","title":"","encoding":{"color":{"value":"#d67195"}}}]
{"hconcat":[{"mark":"point","data":{"url": "https://gist.githubusercontent.com/light-and-salt/cf218845ecc40be1296e7bd885ca8f90/raw/b2e570a683c7b9ec7af3b81a61ccd35852d43c47/population.json", "format": {"type":"json"}},"encoding":{"x":{"field":"sex","type":"nominal"},"color":{"value":"#d67195"}}},{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","data":{"url": "https://gist.githubusercontent.com/light-and-salt/cf218845ecc40be1296e7bd885ca8f90/raw/b2e570a683c7b9ec7af3b81a61ccd35852d43c47/population.json", "format": {"type":"json"}},"layer":[{"mark":"errorband","encoding":{"y":{"field":"people","type":"quantitative","scale":{"zero":false},"title":"people"},"y2":{"field":"ci0"},"x":{"field":"Year","timeUnit":"year"}}},{"mark":"line","encoding":{"y":{"field":"people","type":"quantitative","title":"people"},"x":{"field":"sex","type":"ordinal","title":"sex"}}}],"index":483,"description":"vl-template-483","title":"","encoding":{"color":{"value":"#d67195"}}},{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","description":"vl-template-321","data":{"url": "https://gist.githubusercontent.com/light-and-salt/cf218845ecc40be1296e7bd885ca8f90/raw/b2e570a683c7b9ec7af3b81a61ccd35852d43c47/population.json", "format": {"type":"json"}},"mark":"boxplot","encoding":{"x":{"field":"sex","type":"nominal","axis":{"labelAngle":0,"title":"sex"},"title":"sex"},"y":{"field":"people","type":"quantitative","title":"people"},"color":{"value":"#d67195"}},"index":321,"title":""},{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","data":{"url": "https://gist.githubusercontent.com/light-and-salt/cf218845ecc40be1296e7bd885ca8f90/raw/b2e570a683c7b9ec7af3b81a61ccd35852d43c47/population.json", "format": {"type":"json"}},"repeat":{"row":["Horsepower","Acceleration","Miles_per_Gallon"],"column":["Miles_per_Gallon","Acceleration","Horsepower"]},"spec":{"params":[{"name":"grid","select":"interval","bind":"scales"}],"mark":"point","encoding":{"x":{"field":"people","type":"quantitative","title":"people"},"y":{"field":"people","type":"quantitative","axis":{"minExtent":30,"title":"people"},"title":"people"},"color":{"field":"age","type":"nominal","title":"age"}}},"index":440,"description":"vl-template-440","title":"","encoding":{"color":{"value":"#d67195"}}}]}
4
Population
[{'name': 'age', 'originalIndex': 1, 'vlType': 'nominal', 'type': 'integer', 'stats': {'type': 'number', 'unique': {'0': 30, '5': 30, '10': 30, '15': 30, '20': 30, '25': 30, '30': 30, '35': 30, '40': 30, '45': 30, '50': 30, '55': 30, '60': 30, '65': 30, '70': 30, '75': 30, '80': 30, '85': 30, '90': 30}, 'count': 570, 'valid': 570, 'missing': 0, 'distinct': 19, 'min': 0, 'max': 90, 'mean': 45.000000000000036, 'stdev': 27.410182449834522, 'median': 45, 'q1': 20, 'q3': 70, 'modeskew': 1.2961291612350974e-15, 'field': 'age'}, 'timeStats': {}, 'binStats': {}, 'index': 0}, {'name': 'sex', 'originalIndex': 2, 'vlType': 'nominal', 'type': 'integer', 'stats': {'type': 'number', 'unique': {'1': 285, '2': 285}, 'count': 570, 'valid': 570, 'missing': 0, 'distinct': 2, 'min': 1, 'max': 2, 'mean': 1.5, 'stdev': 0.500439174436886, 'median': 1.5, 'q1': 1, 'q3': 2, 'modeskew': 0, 'field': 'sex'}, 'timeStats': {}, 'binStats': {}, 'index': 1}, {'name': 'year', 'originalIndex': 0, 'vlType': 'nominal', 'type': 'integer', 'stats': {'type': 'number', 'unique': {'1850': 38, '1860': 38, '1870': 38, '1880': 38, '1900': 38, '1910': 38, '1920': 38, '1930': 38, '1940': 38, '1950': 38, '1960': 38, '1970': 38, '1980': 38, '1990': 38, '2000': 38}, 'count': 570, 'valid': 570, 'missing': 0, 'distinct': 15, 'min': 1850, 'max': 2000, 'mean': 1927.333333333332, 'stdev': 46.72671674118255, 'median': 1930, 'q1': 1880, 'q3': 1970, 'modeskew': -0.05706942093617809, 'field': 'year'}, 'timeStats': {}, 'binStats': {}, 'index': 2}, {'name': 'people', 'originalIndex': 3, 'vlType': 'quantitative', 'type': 'integer', 'stats': {'type': 'number', 'unique': {'5259': 1, '6569': 1, '6622': 1, '7232': 1, '8186': 1, '8649': 1, '10272': 1, '10434': 1, '10511': 1, '13068': 1, '14053': 1, '15164': 1, '15451': 1, '15891': 1, '19302': 1, '20093': 1, '22398': 1, '22437': 1, '22949': 1, '23449': 1, '23929': 1, '28965': 1, '29007': 1, '29506': 1, '30338': 1, '31227': 1, '32085': 1, '40229': 1, '40834': 1, '42263': 1, '43483': 1, '44008': 1, '47427': 1, '48614': 1, '54190': 1, '54836': 1, '56699': 1, '57597': 1, '58119': 1, '59699': 1, '62725': 1, '67526': 1, '71762': 1, '73677': 1, '75908': 1, '75991': 1, '77290': 1, '86929': 1, '88978': 1, '89540': 1, '90766': 1, '92829': 1, '98465': 1, '101778': 1, '105534': 1, '106827': 1, '109210': 1, '127303': 1, '127435': 1, '132449': 1, '135774': 1, '141405': 1, '141628': 1, '143513': 1, '149331': 1, '152131': 1, '161715': 1, '162236': 1, '165501': 1, '173364': 1, '174315': 1, '174976': 1, '182821': 1, '186502': 1, '187000': 1, '187208': 1, '194080': 1, '204148': 1, '211110': 1, '238459': 1, '239080': 1, '242798': 1, '246708': 1, '249735': 1, '251860': 1, '253245': 1, '255422': 1, '260829': 1, '260887': 1, '265879': 1, '267224': 1, '268211': 1, '283579': 1, '286580': 1, '292417': 1, '314929': 1, '321343': 1, '322679': 1, '336303': 1, '341254': 1, '346303': 1, '350900': 1, '359418': 1, '369398': 1, '371123': 1, '374801': 1, '384211': 1, '384572': 1, '399264': 1, '407305': 1, '407819': 1, '414761': 1, '417292': 1, '428185': 1, '439465': 1, '440007': 1, '454747': 1, '456176': 1, '461739': 1, '472338': 1, '475911': 1, '486036': 1, '499046': 1, '505012': 1, '511727': 1, '522716': 1, '526956': 1, '536375': 1, '547623': 1, '552404': 1, '557936': 1, '580298': 1, '588487': 1, '588790': 1, '594843': 1, '616826': 1, '619923': 1, '637717': 1, '637801': 1, '639636': 1, '640212': 1, '658511': 1, '672663': 1, '679147': 1, '690097': 1, '699434': 1, '713875': 1, '714618': 1, '730638': 1, '736387': 1, '737136': 1, '745146': 1, '747916': 1, '764915': 1, '799482': 1, '813868': 1, '850159': 1, '852672': 1, '856952': 1, '862547': 1, '863012': 1, '866910': 1, '886155': 1, '887508': 1, '916571': 1, '918509': 1, '919045': 1, '936055': 1, '944401': 1, '964484': 1, '968861': 1, '970357': 1, '989901': 1, '1003711': 1, '1003841': 1, '1006530': 1, '1012886': 1, '1017281': 1, '1023115': 1, '1043174': 1, '1064581': 1, '1064632': 1, '1065973': 1, '1077133': 1, '1090697': 1, '1095956': 1, '1110619': 1, '1116373': 1, '1137490': 1, '1148469': 1, '1161908': 1, '1185336': 1, '1189421': 1, '1216114': 1, '1217615': 1, '1237347': 1, '1239435': 1, '1251534': 1, '1260099': 1, '1275629': 1, '1280023': 1, '1287711': 1, '1307312': 1, '1308913': 1, '1317651': 1, '1342996': 1, '1351121': 1, '1359668': 1, '1370462': 1, '1382877': 1, '1397275': 1, '1411067': 1, '1411981': 1, '1417553': 1, '1419494': 1, '1438094': 1, '1450376': 1, '1483717': 1, '1483789': 1, '1495999': 1, '1508358': 1, '1509059': 1, '1540350': 1, '1540772': 1, '1571038': 1, '1574285': 1, '1587549': 1, '1596772': 1, '1599269': 1, '1612640': 1, '1627920': 1, '1641371': 1, '1648025': 1, '1674672': 1, '1749107': 1, '1773592': 1, '1778772': 1, '1783515': 1, '1786831': 1, '1804467': 1, '1805303': 1, '1840438': 1, '1868413': 1, '1880975': 1, '1897678': 1, '1902638': 1, '1909382': 1, '1911117': 1, '1919292': 1, '1927564': 1, '1958390': 1, '1974241': 1, '1981156': 1, '2004987': 1, '2077248': 1, '2092162': 1, '2114930': 1, '2115763': 1, '2119393': 1, '2120846': 1, '2126516': 1, '2200491': 1, '2261070': 1, '2293376': 1, '2298614': 1, '2317790': 1, '2340826': 1, '2342670': 1, '2344932': 1, '2347737': 1, '2363801': 1, '2370232': 1, '2393680': 1, '2421234': 1, '2427341': 1, '2428469': 1, '2434077': 1, '2457734': 1, '2471267': 1, '2512803': 1, '2516479': 1, '2527818': 1, '2545730': 1, '2546035': 1, '2547780': 1, '2548250': 1, '2633883': 1, '2665174': 1, '2669089': 1, '2717102': 1, '2800083': 1, '2809191': 1, '2810000': 1, '2813550': 1, '2857774': 1, '2859371': 1, '2860229': 1, '2911924': 1, '2912655': 1, '2918964': 1, '2951759': 1, '2972069': 1, '3009768': 1, '3035038': 1, '3059757': 1, '3088990': 1, '3128108': 1, '3138009': 1, '3142606': 1, '3143891': 1, '3179142': 1, '3221898': 1, '3236056': 1, '3268699': 1, '3295220': 1, '3297503': 1, '3321923': 1, '3389280': 1, '3396558': 1, '3405293': 1, '3421597': 1, '3427518': 1, '3429420': 1, '3488396': 1, '3533662': 1, '3595158': 1, '3633152': 1, '3658125': 1, '3667351': 1, '3694038': 1, '3713810': 1, '3723839': 1, '3723980': 1, '3751061': 1, '3754022': 1, '3774846': 1, '3785735': 1, '3792145': 1, '3801743': 1, '3893510': 1, '3894827': 1, '3946153': 1, '3963441': 1, '3982426': 1, '4001749': 1, '4037643': 1, '4050290': 1, '4057669': 1, '4075139': 1, '4081543': 1, '4110771': 1, '4147295': 1, '4170581': 1, '4190187': 1, '4199164': 1, '4257755': 1, '4355644': 1, '4390483': 1, '4394061': 1, '4402878': 1, '4424408': 1, '4437392': 1, '4447683': 1, '4453623': 1, '4455213': 1, '4465783': 1, '4471887': 1, '4529382': 1, '4533177': 1, '4538398': 1, '4549411': 1, '4565066': 1, '4566154': 1, '4576531': 1, '4577251': 1, '4589196': 1, '4592269': 1, '4593776': 1, '4595842': 1, '4610222': 1, '4619544': 1, '4637632': 1, '4650747': 1, '4696140': 1, '4724365': 1, '4724804': 1, '4742632': 1, '4762911': 1, '4763364': 1, '4779936': 1, '4791809': 1, '4804784': 1, '4866139': 1, '4896947': 1, '4928844': 1, '4929853': 1, '4953822': 1, '4981670': 1, '4991803': 1, '5040048': 1, '5050229': 1, '5076985': 1, '5123399': 1, '5124653': 1, '5171522': 1, '5184855': 1, '5199224': 1, '5222164': 1, '5264129': 1, '5268384': 1, '5287477': 1, '5288742': 1, '5293057': 1, '5294628': 1, '5296823': 1, '5298312': 1, '5305992': 1, '5311805': 1, '5342469': 1, '5345658': 1, '5359099': 1, '5396732': 1, '5401156': 1, '5430835': 1, '5438166': 1, '5456885': 1, '5460506': 1, '5468378': 1, '5485098': 1, '5511364': 1, '5513495': 1, '5516028': 1, '5519879': 1, '5548259': 1, '5553992': 1, '5565382': 1, '5573308': 1, '5594108': 1, '5603709': 1, '5629744': 1, '5657943': 1, '5662530': 1, '5663205': 1, '5664244': 1, '5668961': 1, '5676022': 1, '5682414': 1, '5692148': 1, '5693960': 1, '5694244': 1, '5696261': 1, '5697543': 1, '5708021': 1, '5709452': 1, '5718538': 1, '5769587': 1, '5783817': 1, '5789008': 1, '5794120': 1, '5801342': 1, '5851441': 1, '5854227': 1, '5868532': 1, '5875250': 1, '5895178': 1, '5896002': 1, '5899925': 1, '5934792': 1, '5940520': 1, '5953910': 1, '5960416': 1, '5986529': 1, '6007254': 1, '6063063': 1, '6064820': 1, '6090862': 1, '6110117': 1, '6129319': 1, '6129561': 1, '6160229': 1, '6165109': 1, '6193701': 1, '6198742': 1, '6317332': 1, '6431337': 1, '6450863': 1, '6459082': 1, '6539301': 1, '6542592': 1, '6617493': 1, '6620902': 1, '6706601': 1, '6848082': 1, '6852069': 1, '6903041': 1, '6921268': 1, '7115129': 1, '7134239': 1, '7729202': 1, '7862267': 1, '8081854': 1, '8211806': 1, '8275881': 1, '8310764': 1, '8326887': 1, '8337284': 1, '8341830': 1, '8439366': 1, '8507934': 1, '8563700': 1, '8590991': 1, '8680730': 1, '8685121': 1, '8705835': 1, '8712632': 1, '8782542': 1, '8799955': 1, '8894007': 1, '8911133': 1, '8928252': 1, '8955225': 1, '9020572': 1, '9048483': 1, '9152644': 1, '9250741': 1, '9274732': 1, '9307465': 1, '9310714': 1, '9324244': 1, '9414284': 1, '9436188': 1, '9452338': 1, '9495503': 1, '9518507': 1, '9605399': 1, '9624053': 1, '9659493': 1, '9692669': 1, '9731315': 1, '9735380': 1, '9827903': 1, '9853933': 1, '9925006': 1, '10003293': 1, '10022524': 1, '10038644': 1, '10069564': 1, '10119296': 1, '10146999': 1, '10205879': 1, '10237419': 1, '10261253': 1, '10343538': 1, '10374975': 1, '10410271': 1, '10411131': 1, '10486776': 1, '10552146': 1, '10563233': 1, '10587292': 1, '10614947': 1, '10658027': 1, '10698856': 1, '10756403': 1, '11028712': 1, '11105750': 1, '11320252': 1, '11475182': 1, '11488578': 1, '11635647': 1}, 'count': 570, 'valid': 570, 'missing': 0, 'distinct': 570, 'min': 5259, 'max': 11635647, 'mean': 3428937.1543859644, 'stdev': 3101098.4382100436, 'median': 2548015, 'q1': 674284, 'q3': 5466410, 'modeskew': 0.28406778176781555, 'field': 'people'}, 'timeStats': {}, 'binStats': {'5': {'type': 'number', 'unique': {'0': 399, '5000000': 144, '10000000': 27}, 'count': 570, 'valid': 570, 'missing': 0, 'distinct': 3, 'min': 0, 'max': 15000000, 'mean': 3428937.1543859644, 'stdev': 3101098.4382100436, 'median': 2548015, 'q1': 674284, 'q3': 5466410, 'modeskew': 0.28406778176781555, 'field': 'people'}, '10': {'type': 'number', 'unique': {'0': 253, '2000000': 91, '4000000': 128, '6000000': 28, '8000000': 43, '10000000': 27}, 'count': 570, 'valid': 570, 'missing': 0, 'distinct': 6, 'min': 0, 'max': 12000000, 'mean': 3428937.1543859644, 'stdev': 3101098.4382100436, 'median': 2548015, 'q1': 674284, 'q3': 5466410, 'modeskew': 0.28406778176781555, 'field': 'people'}, '20': {'type': 'number', 'unique': {'0': 173, '1000000': 80, '2000000': 49, '3000000': 42, '4000000': 55, '5000000': 73, '6000000': 24, '7000000': 4, '8000000': 21, '9000000': 22, '10000000': 21, '11000000': 6}, 'count': 570, 'valid': 570, 'missing': 0, 'distinct': 12, 'min': 0, 'max': 12000000, 'mean': 3428937.1543859644, 'stdev': 3101098.4382100436, 'median': 2548015, 'q1': 674284, 'q3': 5466410, 'modeskew': 0.28406778176781555, 'field': 'people'}}, 'index': 3}]
['', '[{"mark":"point","data":{"name":"source"},"encoding":{"x":{"field":"sex","type":"nominal"}}}]', '[{"mark":"point","data":{"name":"source"},"encoding":{"x":{"field":"sex","type":"nominal"}}},{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","data":{"name":"source"},"layer":[{"mark":"errorband","encoding":{"y":{"field":"people","type":"quantitative","scale":{"zero":false},"title":"people"},"y2":{"field":"ci0"},"x":{"field":"Year","timeUnit":"year"}}},{"mark":"line","encoding":{"y":{"field":"people","type":"quantitative","title":"people"},"x":{"field":"sex","type":"ordinal","title":"sex"}}}],"index":483,"description":"vl-template-483","title":""}]', '[{"mark":"point","data":{"name":"source"},"encoding":{"x":{"field":"sex","type":"nominal"}}},{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","data":{"name":"source"},"layer":[{"mark":"errorband","encoding":{"y":{"field":"people","type":"quantitative","scale":{"zero":false},"title":"people"},"y2":{"field":"ci0"},"x":{"field":"Year","timeUnit":"year"}}},{"mark":"line","encoding":{"y":{"field":"people","type":"quantitative","title":"people"},"x":{"field":"sex","type":"ordinal","title":"sex"}}}],"index":483,"description":"vl-template-483","title":""},{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","description":"vl-template-321","data":{"name":"source"},"mark":"boxplot","encoding":{"x":{"field":"sex","type":"nominal","axis":{"labelAngle":0,"title":"sex"},"title":"sex"},"y":{"field":"people","type":"quantitative","title":"people"}},"index":321,"title":""}]', '[{"mark":"point","data":{"name":"source"},"encoding":{"x":{"field":"sex","type":"nominal"}}},{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","data":{"name":"source"},"layer":[{"mark":"errorband","encoding":{"y":{"field":"people","type":"quantitative","scale":{"zero":false},"title":"people"},"y2":{"field":"ci0"},"x":{"field":"Year","timeUnit":"year"}}},{"mark":"line","encoding":{"y":{"field":"people","type":"quantitative","title":"people"},"x":{"field":"sex","type":"ordinal","title":"sex"}}}],"index":483,"description":"vl-template-483","title":""},{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","description":"vl-template-321","data":{"name":"source"},"mark":"boxplot","encoding":{"x":{"field":"sex","type":"nominal","axis":{"labelAngle":0,"title":"sex"},"title":"sex"},"y":{"field":"people","type":"quantitative","title":"people"}},"index":321,"title":""},{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","data":{"name":"source"},"repeat":{"row":["Horsepower","Acceleration","Miles_per_Gallon"],"column":["Miles_per_Gallon","Acceleration","Horsepower"]},"spec":{"params":[{"name":"grid","select":"interval","bind":"scales"}],"mark":"point","encoding":{"x":{"field":"people","type":"quantitative","title":"people"},"y":{"field":"people","type":"quantitative","axis":{"minExtent":30,"title":"people"},"title":"people"},"color":{"field":"age","type":"nominal","title":"age"}}},"index":440,"description":"vl-template-440","title":""}]']
['Add a new blank chart to the dashboard. Add "sex" to x. Add sex to x.', 'Plug in my data to vl-template-483. Remove center and use people instead on y. Replace Year with sex on x.', 'Add Vega-Lite template 321. Replace a with sex. Replace b with people.', 'Add vl-template-440 to the dashboard. Replace [object Object] with people. Plug in people on y. Replace Origin with age.', 'Set the default color to #d67195 in all charts.']
['REVISION_STEP_ADD_CHART', 'REVISION_STEP_ADD_TEMPLATE', 'REVISION_STEP_ADD_TEMPLATE', 'REVISION_STEP_ADD_TEMPLATE', 'REVISION_STEP_SET_CONSTANT_COLOR_IN_ALL_CHARTS']
[4, 4, 4, 4, 1]
17
REVISION_STEP_SET_CONSTANT_COLOR_IN_ALL_CHARTS
function enumSetConstantColorInAllCharts(parent, stepType, enumerate, sampleSize) { if (stepType === void 0) { stepType = models_1.REVISION_STEP_SET_CONSTANT_COLOR_IN_ALL_CHARTS; } if (enumerate === void 0) { enumerate = 'random'; } if (sampleSize === void 0) { sampleSize = models_1.SAMPLE_SIZE; } // if default color has already been set, don't set again // in this way, we only set default color once from root to each leaf if (parent.dashboard.hasBeen.setConstantColor) { return []; } var enumerated = []; switch (enumerate) { case 'common': for (var c in color_def_1.COMMON_CONSTANT_COLORS) { var color = color_def_1.COMMON_CONSTANT_COLORS[c]; var withColorSet = setConstantColorInAllCharts(parent, stepType, color); if (withColorSet) { enumerated.push(withColorSet); } } break; case 'random': for (var i = 0; i < sampleSize; i++) { var color = Object.values(color_def_1.TABLEAU20)[Math.floor(Math.random() * 20)]; var withColorSet = setConstantColorInAllCharts(parent, stepType, color); if (withColorSet) { enumerated.push(withColorSet); } } default: break; } return enumerated; }
[{"mark":"point","data":{"name":"source"},"encoding":{"x":{"field":"sex","type":"nominal"}}},{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","data":{"name":"source"},"layer":[{"mark":"errorband","encoding":{"y":{"field":"people","type":"quantitative","scale":{"zero":false},"title":"people"},"y2":{"field":"ci0"},"x":{"field":"Year","timeUnit":"year"}}},{"mark":"line","encoding":{"y":{"field":"people","type":"quantitative","title":"people"},"x":{"field":"sex","type":"ordinal","title":"sex"}}}],"index":483,"description":"vl-template-483","title":""},{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","description":"vl-template-321","data":{"name":"source"},"mark":"boxplot","encoding":{"x":{"field":"sex","type":"nominal","axis":{"labelAngle":0,"title":"sex"},"title":"sex"},"y":{"field":"people","type":"quantitative","title":"people"}},"index":321,"title":""},{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","data":{"name":"source"},"repeat":{"row":["Horsepower","Acceleration","Miles_per_Gallon"],"column":["Miles_per_Gallon","Acceleration","Horsepower"]},"spec":{"params":[{"name":"grid","select":"interval","bind":"scales"}],"mark":"point","encoding":{"x":{"field":"people","type":"quantitative","title":"people"},"y":{"field":"people","type":"quantitative","axis":{"minExtent":30,"title":"people"},"title":"people"},"color":{"field":"age","type":"nominal","title":"age"}}},"index":440,"description":"vl-template-440","title":""}]
[{"mark":"point","data":{"name":"source"},"encoding":{"x":{"field":"sex","type":"nominal"}}},{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","data":{"name":"source"},"layer":[{"mark":"errorband","encoding":{"y":{"field":"people","type":"quantitative","scale":{"zero":false},"title":"people"},"y2":{"field":"ci0"},"x":{"field":"Year","timeUnit":"year"}}},{"mark":"line","encoding":{"y":{"field":"people","type":"quantitative","title":"people"},"x":{"field":"sex","type":"ordinal","title":"sex"}}}],"index":483,"description":"vl-template-483","title":""},{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","description":"vl-template-321","data":{"name":"source"},"mark":"boxplot","encoding":{"x":{"field":"sex","type":"nominal","axis":{"labelAngle":0,"title":"sex"},"title":"sex"},"y":{"field":"people","type":"quantitative","title":"people"}},"index":321,"title":""},{"$schema":"https://vega.github.io/schema/vega-lite/v5.json","data":{"name":"source"},"repeat":{"row":["Horsepower","Acceleration","Miles_per_Gallon"],"column":["Miles_per_Gallon","Acceleration","Horsepower"]},"spec":{"params":[{"name":"grid","select":"interval","bind":"scales"}],"mark":"point","encoding":{"x":{"field":"people","type":"quantitative","title":"people"},"y":{"field":"people","type":"quantitative","axis":{"minExtent":30,"title":"people"},"title":"people"},"color":{"field":"age","type":"nominal","title":"age"}}},"index":440,"description":"vl-template-440","title":""}]
True
False
False
False
False
False
False
False
False
False
False
False
False
False
False
False
False
False
{'$schema': 'https://vega.github.io/schema/vega/v5.json', 'background': 'white', 'padding': 5, 'data': [{'name': 'grid_store'}, {'name': 'source_0', 'url': 'https://gist.githubusercontent.com/light-and-salt/cf218845ecc40be1296e7bd885ca8f90/raw/b2e570a683c7b9ec7af3b81a61ccd35852d43c47/population.json', 'format': {'type': 'json', 'parse': {'Year': 'date'}}}, {'name': 'data_1', 'source': 'source_0', 'transform': [{'field': 'Year', 'type': 'timeunit', 'units': ['year'], 'as': ['year_Year', 'year_Year_end']}, {'type': 'formula', 'expr': 'datum["ci0"]', 'as': 'upper_people'}, {'type': 'formula', 'expr': 'datum["people"]', 'as': 'lower_people'}]}, {'name': 'data_2', 'source': 'source_0', 'transform': [{'type': 'joinaggregate', 'as': ['lower_box_people', 'upper_box_people'], 'ops': ['q1', 'q3'], 'fields': ['people', 'people'], 'groupby': ['sex']}]}, {'name': 'data_3', 'source': 'data_2', 'transform': [{'type': 'filter', 'expr': '(datum["people"] < datum["lower_box_people"] - 1.5 * (datum["upper_box_people"] - datum["lower_box_people"])) || (datum["people"] > datum["upper_box_people"] + 1.5 * (datum["upper_box_people"] - datum["lower_box_people"]))'}, {'type': 'filter', 'expr': 'isValid(datum["people"]) && isFinite(+datum["people"])'}]}, {'name': 'data_4', 'source': 'data_2', 'transform': [{'type': 'filter', 'expr': '(datum["lower_box_people"] - 1.5 * (datum["upper_box_people"] - datum["lower_box_people"]) <= datum["people"]) && (datum["people"] <= datum["upper_box_people"] + 1.5 * (datum["upper_box_people"] - datum["lower_box_people"]))'}, {'type': 'aggregate', 'groupby': ['sex'], 'ops': ['min', 'max', 'min', 'max'], 'fields': ['people', 'people', 'lower_box_people', 'upper_box_people'], 'as': ['lower_whisker_people', 'upper_whisker_people', 'lower_box_people', 'upper_box_people']}]}, {'name': 'data_5', 'source': 'data_4', 'transform': [{'type': 'filter', 'expr': 'isValid(datum["lower_whisker_people"]) && isFinite(+datum["lower_whisker_people"])'}]}, {'name': 'data_6', 'source': 'data_4', 'transform': [{'type': 'filter', 'expr': 'isValid(datum["upper_box_people"]) && isFinite(+datum["upper_box_people"])'}]}, {'name': 'data_7', 'source': 'source_0', 'transform': [{'type': 'aggregate', 'groupby': ['sex'], 'ops': ['q1', 'q3', 'median', 'min', 'max'], 'fields': ['people', 'people', 'people', 'people', 'people'], 'as': ['lower_box_people', 'upper_box_people', 'mid_box_people', 'min_people', 'max_people']}]}, {'name': 'data_8', 'source': 'data_7', 'transform': [{'type': 'filter', 'expr': 'isValid(datum["lower_box_people"]) && isFinite(+datum["lower_box_people"])'}]}, {'name': 'data_9', 'source': 'data_7', 'transform': [{'type': 'filter', 'expr': 'isValid(datum["mid_box_people"]) && isFinite(+datum["mid_box_people"])'}]}, {'name': 'data_10', 'source': 'source_0', 'transform': [{'type': 'filter', 'expr': 'isValid(datum["people"]) && isFinite(+datum["people"])'}]}], 'signals': [{'name': 'concat_0_x_step', 'value': 20}, {'name': 'concat_0_width', 'update': "bandspace(domain('concat_0_x').length, 1, 0.5) * concat_0_x_step"}, {'name': 'concat_0_height', 'value': 20}, {'name': 'concat_1_x_step', 'value': 20}, {'name': 'concat_1_width', 'update': "bandspace(domain('concat_1_x').length, 1, 0.5) * concat_1_x_step"}, {'name': 'concat_1_height', 'value': 200}, {'name': 'concat_2_x_step', 'value': 20}, {'name': 'concat_2_width', 'update': "bandspace(domain('concat_2_x').length, 0, 0) * concat_2_x_step"}, {'name': 'concat_2_height', 'value': 200}, {'name': 'concat_3_childWidth', 'value': 200}, {'name': 'concat_3_childHeight', 'value': 200}, {'name': 'unit', 'value': {}, 'on': [{'events': 'pointermove', 'update': 'isTuple(group()) ? group() : unit'}]}, {'name': 'grid', 'update': '{"people": grid_people}'}, {'name': 'grid_people'}], 'layout': {'padding': 20, 'bounds': 'full', 'align': 'each'}, 'marks': [{'type': 'group', 'name': 'concat_0_group', 'style': 'cell', 'encode': {'update': {'width': {'signal': 'concat_0_width'}, 'height': {'signal': 'concat_0_height'}}}, 'signals': [{'name': 'height', 'update': 'concat_0_height'}], 'marks': [{'name': 'concat_0_marks', 'type': 'symbol', 'style': ['point'], 'interactive': False, 'from': {'data': 'source_0'}, 'encode': {'update': {'opacity': {'value': 0.7}, 'fill': {'value': 'transparent'}, 'stroke': {'value': '#d67195'}, 'ariaRoleDescription': {'value': 'point'}, 'description': {'signal': '"sex: " + (isValid(datum["sex"]) ? datum["sex"] : ""+datum["sex"])'}, 'x': {'scale': 'concat_0_x', 'field': 'sex'}, 'y': {'signal': 'concat_0_height', 'mult': 0.5}}}}], 'axes': [{'scale': 'concat_0_x', 'orient': 'bottom', 'grid': False, 'title': 'sex', 'labelAlign': 'right', 'labelAngle': 270, 'labelBaseline': 'middle', 'zindex': 0}]}, {'type': 'group', 'name': 'concat_1_group', 'style': 'cell', 'encode': {'update': {'width': {'signal': 'concat_1_width'}, 'height': {'signal': 'concat_1_height'}, 'description': {'value': 'vl-template-483'}}}, 'marks': [{'name': 'concat_1_layer_0_layer_0_marks', 'type': 'area', 'style': ['area', 'errorband-band'], 'sort': {'field': 'datum["year_Year"]'}, 'interactive': True, 'from': {'data': 'data_1'}, 'encode': {'update': {'ariaRoleDescription': {'value': 'errorband'}, 'opacity': {'value': 0.3}, 'orient': {'value': 'vertical'}, 'fill': {'value': '#d67195'}, 'tooltip': {'signal': '{"ci0": format(datum["upper_people"], ""), "people": format(datum["lower_people"], ""), "Year (year)": timeFormat(datum["year_Year"], \'%b %d, %Y\')}'}, 'description': {'signal': '"Year (year): " + (timeFormat(datum["year_Year"], \'%b %d, %Y\')) + "; people: " + (format(datum["lower_people"], "")) + "; upper_people: " + (format(datum["upper_people"], "")) + "; ci0: " + (format(datum["upper_people"], ""))'}, 'x': {'scale': 'concat_1_x', 'field': 'year_Year'}, 'y': {'scale': 'concat_1_y', 'field': 'lower_people'}, 'y2': {'scale': 'concat_1_y', 'field': 'upper_people'}, 'defined': {'signal': 'isValid(datum["lower_people"]) && isFinite(+datum["lower_people"])'}}}}, {'name': 'concat_1_layer_1_marks', 'type': 'line', 'style': ['line'], 'sort': {'field': 'datum["sex"]'}, 'interactive': False, 'from': {'data': 'source_0'}, 'encode': {'update': {'stroke': {'value': '#d67195'}, 'description': {'signal': '"sex: " + (isValid(datum["sex"]) ? datum["sex"] : ""+datum["sex"]) + "; people: " + (format(datum["people"], ""))'}, 'x': {'scale': 'concat_1_x', 'field': 'sex'}, 'y': {'scale': 'concat_1_y', 'field': 'people'}, 'defined': {'signal': 'isValid(datum["people"]) && isFinite(+datum["people"])'}}}}], 'axes': [{'scale': 'concat_1_y', 'orient': 'left', 'gridScale': 'concat_1_x', 'grid': True, 'tickCount': {'signal': 'ceil(concat_1_height/40)'}, 'domain': False, 'labels': False, 'aria': False, 'maxExtent': 0, 'minExtent': 0, 'ticks': False, 'zindex': 0}, {'scale': 'concat_1_x', 'orient': 'bottom', 'grid': False, 'title': 'Year (year), sex', 'formatType': 'time', 'labelAlign': 'right', 'labelAngle': 270, 'labelBaseline': 'middle', 'labelFlush': True, 'labelOverlap': True, 'zindex': 0}, {'scale': 'concat_1_y', 'orient': 'left', 'grid': False, 'title': 'people', 'labelOverlap': True, 'tickCount': {'signal': 'ceil(concat_1_height/40)'}, 'zindex': 0}]}, {'type': 'group', 'name': 'concat_2_group', 'style': 'cell', 'encode': {'update': {'width': {'signal': 'concat_2_width'}, 'height': {'signal': 'concat_2_height'}, 'description': {'value': 'vl-template-321'}}}, 'marks': [{'name': 'concat_2_layer_0_layer_0_marks', 'type': 'symbol', 'style': ['point', 'boxplot-outliers'], 'interactive': False, 'from': {'data': 'data_3'}, 'encode': {'update': {'opacity': {'value': 0.7}, 'fill': {'value': 'transparent'}, 'stroke': {'value': '#d67195'}, 'ariaRoleDescription': {'value': 'point'}, 'description': {'signal': '"sex: " + (isValid(datum["sex"]) ? datum["sex"] : ""+datum["sex"]) + "; people: " + (format(datum["people"], ""))'}, 'x': {'scale': 'concat_2_x', 'field': 'sex', 'band': 0.5}, 'y': {'scale': 'concat_2_y', 'field': 'people'}}}}, {'name': 'concat_2_layer_0_layer_1_layer_0_marks', 'type': 'rule', 'style': ['rule', 'boxplot-rule'], 'interactive': True, 'aria': False, 'from': {'data': 'data_5'}, 'encode': {'update': {'stroke': {'value': 'black'}, 'tooltip': {'signal': '{"Upper Whisker of people": format(datum["upper_whisker_people"], ""), "Lower Whisker of people": format(datum["lower_whisker_people"], ""), "sex": isValid(datum["sex"]) ? datum["sex"] : ""+datum["sex"]}'}, 'x': {'scale': 'concat_2_x', 'field': 'sex', 'band': 0.5}, 'y': {'scale': 'concat_2_y', 'field': 'lower_whisker_people'}, 'y2': {'scale': 'concat_2_y', 'field': 'lower_box_people'}}}}, {'name': 'concat_2_layer_0_layer_1_layer_1_marks', 'type': 'rule', 'style': ['rule', 'boxplot-rule'], 'interactive': True, 'aria': False, 'from': {'data': 'data_6'}, 'encode': {'update': {'stroke': {'value': 'black'}, 'tooltip': {'signal': '{"Upper Whisker of people": format(datum["upper_whisker_people"], ""), "Lower Whisker of people": format(datum["lower_whisker_people"], ""), "sex": isValid(datum["sex"]) ? datum["sex"] : ""+datum["sex"]}'}, 'x': {'scale': 'concat_2_x', 'field': 'sex', 'band': 0.5}, 'y': {'scale': 'concat_2_y', 'field': 'upper_box_people'}, 'y2': {'scale': 'concat_2_y', 'field': 'upper_whisker_people'}}}}, {'name': 'concat_2_layer_1_layer_0_marks', 'type': 'rect', 'style': ['bar', 'boxplot-box'], 'interactive': True, 'from': {'data': 'data_8'}, 'encode': {'update': {'ariaRoleDescription': {'value': 'box'}, 'fill': {'value': '#d67195'}, 'tooltip': {'signal': '{"Max of people": format(datum["max_people"], ""), "Q3 of people": format(datum["upper_box_people"], ""), "Median of people": format(datum["mid_box_people"], ""), "Q1 of people": format(datum["lower_box_people"], ""), "Min of people": format(datum["min_people"], ""), "sex": isValid(datum["sex"]) ? datum["sex"] : ""+datum["sex"]}'}, 'description': {'signal': '"sex: " + (isValid(datum["sex"]) ? datum["sex"] : ""+datum["sex"]) + "; people: " + (format(datum["lower_box_people"], "")) + "; upper_box_people: " + (format(datum["upper_box_people"], "")) + "; Max of people: " + (format(datum["max_people"], "")) + "; Q3 of people: " + (format(datum["upper_box_people"], "")) + "; Median of people: " + (format(datum["mid_box_people"], "")) + "; Q1 of people: " + (format(datum["lower_box_people"], "")) + "; Min of people: " + (format(datum["min_people"], ""))'}, 'xc': {'scale': 'concat_2_x', 'field': 'sex', 'band': 0.5}, 'width': {'value': 14}, 'y': {'scale': 'concat_2_y', 'field': 'lower_box_people'}, 'y2': {'scale': 'concat_2_y', 'field': 'upper_box_people'}}}}, {'name': 'concat_2_layer_1_layer_1_marks', 'type': 'rect', 'style': ['tick', 'boxplot-median'], 'interactive': True, 'aria': False, 'from': {'data': 'data_9'}, 'encode': {'update': {'opacity': {'value': 0.7}, 'fill': [{'test': "datum['lower_box_people'] >= datum['upper_box_people']", 'value': '#d67195'}, {'value': 'white'}], 'tooltip': {'signal': '{"Max of people": format(datum["max_people"], ""), "Q3 of people": format(datum["upper_box_people"], ""), "Median of people": format(datum["mid_box_people"], ""), "Q1 of people": format(datum["lower_box_people"], ""), "Min of people": format(datum["min_people"], ""), "sex": isValid(datum["sex"]) ? datum["sex"] : ""+datum["sex"]}'}, 'xc': {'scale': 'concat_2_x', 'field': 'sex', 'band': 0.5}, 'yc': {'scale': 'concat_2_y', 'field': 'mid_box_people'}, 'width': {'value': 14}, 'height': {'value': 1}}}}], 'axes': [{'scale': 'concat_2_y', 'orient': 'left', 'gridScale': 'concat_2_x', 'grid': True, 'tickCount': {'signal': 'ceil(concat_2_height/40)'}, 'domain': False, 'labels': False, 'aria': False, 'maxExtent': 0, 'minExtent': 0, 'ticks': False, 'zindex': 0}, {'scale': 'concat_2_x', 'orient': 'bottom', 'grid': False, 'title': 'sex', 'labelAngle': 0, 'labelBaseline': 'top', 'zindex': 0}, {'scale': 'concat_2_y', 'orient': 'left', 'grid': False, 'title': 'people', 'labelOverlap': True, 'tickCount': {'signal': 'ceil(concat_2_height/40)'}, 'zindex': 0}]}, {'type': 'group', 'name': 'concat_3_group', 'encode': {'update': {'description': {'value': 'vl-template-440'}}}, 'layout': {'padding': 20, 'columns': 3, 'bounds': 'full', 'align': 'all'}, 'marks': [{'type': 'group', 'name': 'child__row_Horsepowercolumn_Miles_per_Gallon_group', 'style': 'cell', 'encode': {'update': {'width': {'signal': 'concat_3_childWidth'}, 'height': {'signal': 'concat_3_childHeight'}}}, 'signals': [{'name': 'grid_people', 'on': [{'events': [{'source': 'view', 'type': 'dblclick'}], 'update': 'null'}, {'events': {'signal': 'grid_translate_delta'}, 'update': 'panLinear(grid_translate_anchor.extent_x, -grid_translate_delta.x / concat_3_childWidth)'}, {'events': {'signal': 'grid_zoom_delta'}, 'update': 'zoomLinear(domain("child__row_Horsepowercolumn_Miles_per_Gallon_x"), grid_zoom_anchor.x, grid_zoom_delta)'}], 'push': 'outer'}, {'name': 'grid_tuple', 'on': [{'events': [{'signal': 'grid_people'}], 'update': 'grid_people ? {unit: "child__row_Horsepowercolumn_Miles_per_Gallon", fields: grid_tuple_fields, values: [grid_people]} : null'}]}, {'name': 'grid_tuple_fields', 'value': [{'field': 'people', 'channel': 'x', 'type': 'R'}]}, {'name': 'grid_translate_anchor', 'value': {}, 'on': [{'events': [{'source': 'scope', 'type': 'pointerdown'}], 'update': '{x: x(unit), y: y(unit), extent_x: domain("child__row_Horsepowercolumn_Miles_per_Gallon_x")}'}]}, {'name': 'grid_translate_delta', 'value': {}, 'on': [{'events': [{'source': 'window', 'type': 'pointermove', 'consume': True, 'between': [{'source': 'scope', 'type': 'pointerdown'}, {'source': 'window', 'type': 'pointerup'}]}], 'update': '{x: grid_translate_anchor.x - x(unit), y: grid_translate_anchor.y - y(unit)}'}]}, {'name': 'grid_zoom_anchor', 'on': [{'events': [{'source': 'scope', 'type': 'wheel', 'consume': True}], 'update': '{x: invert("child__row_Horsepowercolumn_Miles_per_Gallon_x", x(unit)), y: invert("child__row_Horsepowercolumn_Miles_per_Gallon_y", y(unit))}'}]}, {'name': 'grid_zoom_delta', 'on': [{'events': [{'source': 'scope', 'type': 'wheel', 'consume': True}], 'force': True, 'update': 'pow(1.001, event.deltaY * pow(16, event.deltaMode))'}]}, {'name': 'grid_modify', 'on': [{'events': {'signal': 'grid_tuple'}, 'update': 'modify("grid_store", grid_tuple, true)'}]}], 'marks': [{'name': 'child__row_Horsepowercolumn_Miles_per_Gallon_marks', 'type': 'symbol', 'clip': True, 'style': ['point'], 'interactive': True, 'from': {'data': 'data_10'}, 'encode': {'update': {'opacity': {'value': 0.7}, 'fill': {'value': 'transparent'}, 'stroke': {'scale': 'color', 'field': 'age'}, 'ariaRoleDescription': {'value': 'point'}, 'description': {'signal': '"people: " + (format(datum["people"], "")) + "; age: " + (isValid(datum["age"]) ? datum["age"] : ""+datum["age"])'}, 'x': {'scale': 'child__row_Horsepowercolumn_Miles_per_Gallon_x', 'field': 'people'}, 'y': {'scale': 'child__row_Horsepowercolumn_Miles_per_Gallon_y', 'field': 'people'}}}}], 'axes': [{'scale': 'child__row_Horsepowercolumn_Miles_per_Gallon_x', 'orient': 'bottom', 'gridScale': 'child__row_Horsepowercolumn_Miles_per_Gallon_y', 'grid': True, 'tickCount': {'signal': 'ceil(concat_3_childWidth/40)'}, 'domain': False, 'labels': False, 'aria': False, 'maxExtent': 0, 'minExtent': 0, 'ticks': False, 'zindex': 0}, {'scale': 'child__row_Horsepowercolumn_Miles_per_Gallon_y', 'orient': 'left', 'gridScale': 'child__row_Horsepowercolumn_Miles_per_Gallon_x', 'grid': True, 'tickCount': {'signal': 'ceil(concat_3_childHeight/40)'}, 'domain': False, 'labels': False, 'aria': False, 'maxExtent': 0, 'minExtent': 0, 'ticks': False, 'zindex': 0}, {'scale': 'child__row_Horsepowercolumn_Miles_per_Gallon_x', 'orient': 'bottom', 'grid': False, 'title': 'people', 'labelFlush': True, 'labelOverlap': True, 'tickCount': {'signal': 'ceil(concat_3_childWidth/40)'}, 'zindex': 0}, {'scale': 'child__row_Horsepowercolumn_Miles_per_Gallon_y', 'orient': 'left', 'grid': False, 'title': 'people', 'minExtent': 30, 'labelOverlap': True, 'tickCount': {'signal': 'ceil(concat_3_childHeight/40)'}, 'zindex': 0}]}, {'type': 'group', 'name': 'child__row_Horsepowercolumn_Acceleration_group', 'style': 'cell', 'encode': {'update': {'width': {'signal': 'concat_3_childWidth'}, 'height': {'signal': 'concat_3_childHeight'}}}, 'signals': [{'name': 'grid_people', 'on': [{'events': [{'source': 'view', 'type': 'dblclick'}], 'update': 'null'}, {'events': {'signal': 'grid_translate_delta'}, 'update': 'panLinear(grid_translate_anchor.extent_x, -grid_translate_delta.x / concat_3_childWidth)'}, {'events': {'signal': 'grid_zoom_delta'}, 'update': 'zoomLinear(domain("child__row_Horsepowercolumn_Acceleration_x"), grid_zoom_anchor.x, grid_zoom_delta)'}], 'push': 'outer'}, {'name': 'grid_tuple', 'on': [{'events': [{'signal': 'grid_people'}], 'update': 'grid_people ? {unit: "child__row_Horsepowercolumn_Acceleration", fields: grid_tuple_fields, values: [grid_people]} : null'}]}, {'name': 'grid_tuple_fields', 'value': [{'field': 'people', 'channel': 'x', 'type': 'R'}]}, {'name': 'grid_translate_anchor', 'value': {}, 'on': [{'events': [{'source': 'scope', 'type': 'pointerdown'}], 'update': '{x: x(unit), y: y(unit), extent_x: domain("child__row_Horsepowercolumn_Acceleration_x")}'}]}, {'name': 'grid_translate_delta', 'value': {}, 'on': [{'events': [{'source': 'window', 'type': 'pointermove', 'consume': True, 'between': [{'source': 'scope', 'type': 'pointerdown'}, {'source': 'window', 'type': 'pointerup'}]}], 'update': '{x: grid_translate_anchor.x - x(unit), y: grid_translate_anchor.y - y(unit)}'}]}, {'name': 'grid_zoom_anchor', 'on': [{'events': [{'source': 'scope', 'type': 'wheel', 'consume': True}], 'update': '{x: invert("child__row_Horsepowercolumn_Acceleration_x", x(unit)), y: invert("child__row_Horsepowercolumn_Acceleration_y", y(unit))}'}]}, {'name': 'grid_zoom_delta', 'on': [{'events': [{'source': 'scope', 'type': 'wheel', 'consume': True}], 'force': True, 'update': 'pow(1.001, event.deltaY * pow(16, event.deltaMode))'}]}, {'name': 'grid_modify', 'on': [{'events': {'signal': 'grid_tuple'}, 'update': 'modify("grid_store", grid_tuple, true)'}]}], 'marks': [{'name': 'child__row_Horsepowercolumn_Acceleration_marks', 'type': 'symbol', 'clip': True, 'style': ['point'], 'interactive': True, 'from': {'data': 'data_10'}, 'encode': {'update': {'opacity': {'value': 0.7}, 'fill': {'value': 'transparent'}, 'stroke': {'scale': 'color', 'field': 'age'}, 'ariaRoleDescription': {'value': 'point'}, 'description': {'signal': '"people: " + (format(datum["people"], "")) + "; age: " + (isValid(datum["age"]) ? datum["age"] : ""+datum["age"])'}, 'x': {'scale': 'child__row_Horsepowercolumn_Acceleration_x', 'field': 'people'}, 'y': {'scale': 'child__row_Horsepowercolumn_Acceleration_y', 'field': 'people'}}}}], 'axes': [{'scale': 'child__row_Horsepowercolumn_Acceleration_x', 'orient': 'bottom', 'gridScale': 'child__row_Horsepowercolumn_Acceleration_y', 'grid': True, 'tickCount': {'signal': 'ceil(concat_3_childWidth/40)'}, 'domain': False, 'labels': False, 'aria': False, 'maxExtent': 0, 'minExtent': 0, 'ticks': False, 'zindex': 0}, {'scale': 'child__row_Horsepowercolumn_Acceleration_y', 'orient': 'left', 'gridScale': 'child__row_Horsepowercolumn_Acceleration_x', 'grid': True, 'tickCount': {'signal': 'ceil(concat_3_childHeight/40)'}, 'domain': False, 'labels': False, 'aria': False, 'maxExtent': 0, 'minExtent': 0, 'ticks': False, 'zindex': 0}, {'scale': 'child__row_Horsepowercolumn_Acceleration_x', 'orient': 'bottom', 'grid': False, 'title': 'people', 'labelFlush': True, 'labelOverlap': True, 'tickCount': {'signal': 'ceil(concat_3_childWidth/40)'}, 'zindex': 0}, {'scale': 'child__row_Horsepowercolumn_Acceleration_y', 'orient': 'left', 'grid': False, 'title': 'people', 'minExtent': 30, 'labelOverlap': True, 'tickCount': {'signal': 'ceil(concat_3_childHeight/40)'}, 'zindex': 0}]}, {'type': 'group', 'name': 'child__row_Horsepowercolumn_Horsepower_group', 'style': 'cell', 'encode': {'update': {'width': {'signal': 'concat_3_childWidth'}, 'height': {'signal': 'concat_3_childHeight'}}}, 'signals': [{'name': 'grid_people', 'on': [{'events': [{'source': 'view', 'type': 'dblclick'}], 'update': 'null'}, {'events': {'signal': 'grid_translate_delta'}, 'update': 'panLinear(grid_translate_anchor.extent_x, -grid_translate_delta.x / concat_3_childWidth)'}, {'events': {'signal': 'grid_zoom_delta'}, 'update': 'zoomLinear(domain("child__row_Horsepowercolumn_Horsepower_x"), grid_zoom_anchor.x, grid_zoom_delta)'}], 'push': 'outer'}, {'name': 'grid_tuple', 'on': [{'events': [{'signal': 'grid_people'}], 'update': 'grid_people ? {unit: "child__row_Horsepowercolumn_Horsepower", fields: grid_tuple_fields, values: [grid_people]} : null'}]}, {'name': 'grid_tuple_fields', 'value': [{'field': 'people', 'channel': 'x', 'type': 'R'}]}, {'name': 'grid_translate_anchor', 'value': {}, 'on': [{'events': [{'source': 'scope', 'type': 'pointerdown'}], 'update': '{x: x(unit), y: y(unit), extent_x: domain("child__row_Horsepowercolumn_Horsepower_x")}'}]}, {'name': 'grid_translate_delta', 'value': {}, 'on': [{'events': [{'source': 'window', 'type': 'pointermove', 'consume': True, 'between': [{'source': 'scope', 'type': 'pointerdown'}, {'source': 'window', 'type': 'pointerup'}]}], 'update': '{x: grid_translate_anchor.x - x(unit), y: grid_translate_anchor.y - y(unit)}'}]}, {'name': 'grid_zoom_anchor', 'on': [{'events': [{'source': 'scope', 'type': 'wheel', 'consume': True}], 'update': '{x: invert("child__row_Horsepowercolumn_Horsepower_x", x(unit)), y: invert("child__row_Horsepowercolumn_Horsepower_y", y(unit))}'}]}, {'name': 'grid_zoom_delta', 'on': [{'events': [{'source': 'scope', 'type': 'wheel', 'consume': True}], 'force': True, 'update': 'pow(1.001, event.deltaY * pow(16, event.deltaMode))'}]}, {'name': 'grid_modify', 'on': [{'events': {'signal': 'grid_tuple'}, 'update': 'modify("grid_store", grid_tuple, true)'}]}], 'marks': [{'name': 'child__row_Horsepowercolumn_Horsepower_marks', 'type': 'symbol', 'clip': True, 'style': ['point'], 'interactive': True, 'from': {'data': 'data_10'}, 'encode': {'update': {'opacity': {'value': 0.7}, 'fill': {'value': 'transparent'}, 'stroke': {'scale': 'color', 'field': 'age'}, 'ariaRoleDescription': {'value': 'point'}, 'description': {'signal': '"people: " + (format(datum["people"], "")) + "; age: " + (isValid(datum["age"]) ? datum["age"] : ""+datum["age"])'}, 'x': {'scale': 'child__row_Horsepowercolumn_Horsepower_x', 'field': 'people'}, 'y': {'scale': 'child__row_Horsepowercolumn_Horsepower_y', 'field': 'people'}}}}], 'axes': [{'scale': 'child__row_Horsepowercolumn_Horsepower_x', 'orient': 'bottom', 'gridScale': 'child__row_Horsepowercolumn_Horsepower_y', 'grid': True, 'tickCount': {'signal': 'ceil(concat_3_childWidth/40)'}, 'domain': False, 'labels': False, 'aria': False, 'maxExtent': 0, 'minExtent': 0, 'ticks': False, 'zindex': 0}, {'scale': 'child__row_Horsepowercolumn_Horsepower_y', 'orient': 'left', 'gridScale': 'child__row_Horsepowercolumn_Horsepower_x', 'grid': True, 'tickCount': {'signal': 'ceil(concat_3_childHeight/40)'}, 'domain': False, 'labels': False, 'aria': False, 'maxExtent': 0, 'minExtent': 0, 'ticks': False, 'zindex': 0}, {'scale': 'child__row_Horsepowercolumn_Horsepower_x', 'orient': 'bottom', 'grid': False, 'title': 'people', 'labelFlush': True, 'labelOverlap': True, 'tickCount': {'signal': 'ceil(concat_3_childWidth/40)'}, 'zindex': 0}, {'scale': 'child__row_Horsepowercolumn_Horsepower_y', 'orient': 'left', 'grid': False, 'title': 'people', 'minExtent': 30, 'labelOverlap': True, 'tickCount': {'signal': 'ceil(concat_3_childHeight/40)'}, 'zindex': 0}]}, {'type': 'group', 'name': 'child__row_Accelerationcolumn_Miles_per_Gallon_group', 'style': 'cell', 'encode': {'update': {'width': {'signal': 'concat_3_childWidth'}, 'height': {'signal': 'concat_3_childHeight'}}}, 'signals': [{'name': 'grid_people', 'on': [{'events': [{'source': 'view', 'type': 'dblclick'}], 'update': 'null'}, {'events': {'signal': 'grid_translate_delta'}, 'update': 'panLinear(grid_translate_anchor.extent_x, -grid_translate_delta.x / concat_3_childWidth)'}, {'events': {'signal': 'grid_zoom_delta'}, 'update': 'zoomLinear(domain("child__row_Accelerationcolumn_Miles_per_Gallon_x"), grid_zoom_anchor.x, grid_zoom_delta)'}], 'push': 'outer'}, {'name': 'grid_tuple', 'on': [{'events': [{'signal': 'grid_people'}], 'update': 'grid_people ? {unit: "child__row_Accelerationcolumn_Miles_per_Gallon", fields: grid_tuple_fields, values: [grid_people]} : null'}]}, {'name': 'grid_tuple_fields', 'value': [{'field': 'people', 'channel': 'x', 'type': 'R'}]}, {'name': 'grid_translate_anchor', 'value': {}, 'on': [{'events': [{'source': 'scope', 'type': 'pointerdown'}], 'update': '{x: x(unit), y: y(unit), extent_x: domain("child__row_Accelerationcolumn_Miles_per_Gallon_x")}'}]}, {'name': 'grid_translate_delta', 'value': {}, 'on': [{'events': [{'source': 'window', 'type': 'pointermove', 'consume': True, 'between': [{'source': 'scope', 'type': 'pointerdown'}, {'source': 'window', 'type': 'pointerup'}]}], 'update': '{x: grid_translate_anchor.x - x(unit), y: grid_translate_anchor.y - y(unit)}'}]}, {'name': 'grid_zoom_anchor', 'on': [{'events': [{'source': 'scope', 'type': 'wheel', 'consume': True}], 'update': '{x: invert("child__row_Accelerationcolumn_Miles_per_Gallon_x", x(unit)), y: invert("child__row_Accelerationcolumn_Miles_per_Gallon_y", y(unit))}'}]}, {'name': 'grid_zoom_delta', 'on': [{'events': [{'source': 'scope', 'type': 'wheel', 'consume': True}], 'force': True, 'update': 'pow(1.001, event.deltaY * pow(16, event.deltaMode))'}]}, {'name': 'grid_modify', 'on': [{'events': {'signal': 'grid_tuple'}, 'update': 'modify("grid_store", grid_tuple, true)'}]}], 'marks': [{'name': 'child__row_Accelerationcolumn_Miles_per_Gallon_marks', 'type': 'symbol', 'clip': True, 'style': ['point'], 'interactive': True, 'from': {'data': 'data_10'}, 'encode': {'update': {'opacity': {'value': 0.7}, 'fill': {'value': 'transparent'}, 'stroke': {'scale': 'color', 'field': 'age'}, 'ariaRoleDescription': {'value': 'point'}, 'description': {'signal': '"people: " + (format(datum["people"], "")) + "; age: " + (isValid(datum["age"]) ? datum["age"] : ""+datum["age"])'}, 'x': {'scale': 'child__row_Accelerationcolumn_Miles_per_Gallon_x', 'field': 'people'}, 'y': {'scale': 'child__row_Accelerationcolumn_Miles_per_Gallon_y', 'field': 'people'}}}}], 'axes': [{'scale': 'child__row_Accelerationcolumn_Miles_per_Gallon_x', 'orient': 'bottom', 'gridScale': 'child__row_Accelerationcolumn_Miles_per_Gallon_y', 'grid': True, 'tickCount': {'signal': 'ceil(concat_3_childWidth/40)'}, 'domain': False, 'labels': False, 'aria': False, 'maxExtent': 0, 'minExtent': 0, 'ticks': False, 'zindex': 0}, {'scale': 'child__row_Accelerationcolumn_Miles_per_Gallon_y', 'orient': 'left', 'gridScale': 'child__row_Accelerationcolumn_Miles_per_Gallon_x', 'grid': True, 'tickCount': {'signal': 'ceil(concat_3_childHeight/40)'}, 'domain': False, 'labels': False, 'aria': False, 'maxExtent': 0, 'minExtent': 0, 'ticks': False, 'zindex': 0}, {'scale': 'child__row_Accelerationcolumn_Miles_per_Gallon_x', 'orient': 'bottom', 'grid': False, 'title': 'people', 'labelFlush': True, 'labelOverlap': True, 'tickCount': {'signal': 'ceil(concat_3_childWidth/40)'}, 'zindex': 0}, {'scale': 'child__row_Accelerationcolumn_Miles_per_Gallon_y', 'orient': 'left', 'grid': False, 'title': 'people', 'minExtent': 30, 'labelOverlap': True, 'tickCount': {'signal': 'ceil(concat_3_childHeight/40)'}, 'zindex': 0}]}, {'type': 'group', 'name': 'child__row_Accelerationcolumn_Acceleration_group', 'style': 'cell', 'encode': {'update': {'width': {'signal': 'concat_3_childWidth'}, 'height': {'signal': 'concat_3_childHeight'}}}, 'signals': [{'name': 'grid_people', 'on': [{'events': [{'source': 'view', 'type': 'dblclick'}], 'update': 'null'}, {'events': {'signal': 'grid_translate_delta'}, 'update': 'panLinear(grid_translate_anchor.extent_x, -grid_translate_delta.x / concat_3_childWidth)'}, {'events': {'signal': 'grid_zoom_delta'}, 'update': 'zoomLinear(domain("child__row_Accelerationcolumn_Acceleration_x"), grid_zoom_anchor.x, grid_zoom_delta)'}], 'push': 'outer'}, {'name': 'grid_tuple', 'on': [{'events': [{'signal': 'grid_people'}], 'update': 'grid_people ? {unit: "child__row_Accelerationcolumn_Acceleration", fields: grid_tuple_fields, values: [grid_people]} : null'}]}, {'name': 'grid_tuple_fields', 'value': [{'field': 'people', 'channel': 'x', 'type': 'R'}]}, {'name': 'grid_translate_anchor', 'value': {}, 'on': [{'events': [{'source': 'scope', 'type': 'pointerdown'}], 'update': '{x: x(unit), y: y(unit), extent_x: domain("child__row_Accelerationcolumn_Acceleration_x")}'}]}, {'name': 'grid_translate_delta', 'value': {}, 'on': [{'events': [{'source': 'window', 'type': 'pointermove', 'consume': True, 'between': [{'source': 'scope', 'type': 'pointerdown'}, {'source': 'window', 'type': 'pointerup'}]}], 'update': '{x: grid_translate_anchor.x - x(unit), y: grid_translate_anchor.y - y(unit)}'}]}, {'name': 'grid_zoom_anchor', 'on': [{'events': [{'source': 'scope', 'type': 'wheel', 'consume': True}], 'update': '{x: invert("child__row_Accelerationcolumn_Acceleration_x", x(unit)), y: invert("child__row_Accelerationcolumn_Acceleration_y", y(unit))}'}]}, {'name': 'grid_zoom_delta', 'on': [{'events': [{'source': 'scope', 'type': 'wheel', 'consume': True}], 'force': True, 'update': 'pow(1.001, event.deltaY * pow(16, event.deltaMode))'}]}, {'name': 'grid_modify', 'on': [{'events': {'signal': 'grid_tuple'}, 'update': 'modify("grid_store", grid_tuple, true)'}]}], 'marks': [{'name': 'child__row_Accelerationcolumn_Acceleration_marks', 'type': 'symbol', 'clip': True, 'style': ['point'], 'interactive': True, 'from': {'data': 'data_10'}, 'encode': {'update': {'opacity': {'value': 0.7}, 'fill': {'value': 'transparent'}, 'stroke': {'scale': 'color', 'field': 'age'}, 'ariaRoleDescription': {'value': 'point'}, 'description': {'signal': '"people: " + (format(datum["people"], "")) + "; age: " + (isValid(datum["age"]) ? datum["age"] : ""+datum["age"])'}, 'x': {'scale': 'child__row_Accelerationcolumn_Acceleration_x', 'field': 'people'}, 'y': {'scale': 'child__row_Accelerationcolumn_Acceleration_y', 'field': 'people'}}}}], 'axes': [{'scale': 'child__row_Accelerationcolumn_Acceleration_x', 'orient': 'bottom', 'gridScale': 'child__row_Accelerationcolumn_Acceleration_y', 'grid': True, 'tickCount': {'signal': 'ceil(concat_3_childWidth/40)'}, 'domain': False, 'labels': False, 'aria': False, 'maxExtent': 0, 'minExtent': 0, 'ticks': False, 'zindex': 0}, {'scale': 'child__row_Accelerationcolumn_Acceleration_y', 'orient': 'left', 'gridScale': 'child__row_Accelerationcolumn_Acceleration_x', 'grid': True, 'tickCount': {'signal': 'ceil(concat_3_childHeight/40)'}, 'domain': False, 'labels': False, 'aria': False, 'maxExtent': 0, 'minExtent': 0, 'ticks': False, 'zindex': 0}, {'scale': 'child__row_Accelerationcolumn_Acceleration_x', 'orient': 'bottom', 'grid': False, 'title': 'people', 'labelFlush': True, 'labelOverlap': True, 'tickCount': {'signal': 'ceil(concat_3_childWidth/40)'}, 'zindex': 0}, {'scale': 'child__row_Accelerationcolumn_Acceleration_y', 'orient': 'left', 'grid': False, 'title': 'people', 'minExtent': 30, 'labelOverlap': True, 'tickCount': {'signal': 'ceil(concat_3_childHeight/40)'}, 'zindex': 0}]}, {'type': 'group', 'name': 'child__row_Accelerationcolumn_Horsepower_group', 'style': 'cell', 'encode': {'update': {'width': {'signal': 'concat_3_childWidth'}, 'height': {'signal': 'concat_3_childHeight'}}}, 'signals': [{'name': 'grid_people', 'on': [{'events': [{'source': 'view', 'type': 'dblclick'}], 'update': 'null'}, {'events': {'signal': 'grid_translate_delta'}, 'update': 'panLinear(grid_translate_anchor.extent_x, -grid_translate_delta.x / concat_3_childWidth)'}, {'events': {'signal': 'grid_zoom_delta'}, 'update': 'zoomLinear(domain("child__row_Accelerationcolumn_Horsepower_x"), grid_zoom_anchor.x, grid_zoom_delta)'}], 'push': 'outer'}, {'name': 'grid_tuple', 'on': [{'events': [{'signal': 'grid_people'}], 'update': 'grid_people ? {unit: "child__row_Accelerationcolumn_Horsepower", fields: grid_tuple_fields, values: [grid_people]} : null'}]}, {'name': 'grid_tuple_fields', 'value': [{'field': 'people', 'channel': 'x', 'type': 'R'}]}, {'name': 'grid_translate_anchor', 'value': {}, 'on': [{'events': [{'source': 'scope', 'type': 'pointerdown'}], 'update': '{x: x(unit), y: y(unit), extent_x: domain("child__row_Accelerationcolumn_Horsepower_x")}'}]}, {'name': 'grid_translate_delta', 'value': {}, 'on': [{'events': [{'source': 'window', 'type': 'pointermove', 'consume': True, 'between': [{'source': 'scope', 'type': 'pointerdown'}, {'source': 'window', 'type': 'pointerup'}]}], 'update': '{x: grid_translate_anchor.x - x(unit), y: grid_translate_anchor.y - y(unit)}'}]}, {'name': 'grid_zoom_anchor', 'on': [{'events': [{'source': 'scope', 'type': 'wheel', 'consume': True}], 'update': '{x: invert("child__row_Accelerationcolumn_Horsepower_x", x(unit)), y: invert("child__row_Accelerationcolumn_Horsepower_y", y(unit))}'}]}, {'name': 'grid_zoom_delta', 'on': [{'events': [{'source': 'scope', 'type': 'wheel', 'consume': True}], 'force': True, 'update': 'pow(1.001, event.deltaY * pow(16, event.deltaMode))'}]}, {'name': 'grid_modify', 'on': [{'events': {'signal': 'grid_tuple'}, 'update': 'modify("grid_store", grid_tuple, true)'}]}], 'marks': [{'name': 'child__row_Accelerationcolumn_Horsepower_marks', 'type': 'symbol', 'clip': True, 'style': ['point'], 'interactive': True, 'from': {'data': 'data_10'}, 'encode': {'update': {'opacity': {'value': 0.7}, 'fill': {'value': 'transparent'}, 'stroke': {'scale': 'color', 'field': 'age'}, 'ariaRoleDescription': {'value': 'point'}, 'description': {'signal': '"people: " + (format(datum["people"], "")) + "; age: " + (isValid(datum["age"]) ? datum["age"] : ""+datum["age"])'}, 'x': {'scale': 'child__row_Accelerationcolumn_Horsepower_x', 'field': 'people'}, 'y': {'scale': 'child__row_Accelerationcolumn_Horsepower_y', 'field': 'people'}}}}], 'axes': [{'scale': 'child__row_Accelerationcolumn_Horsepower_x', 'orient': 'bottom', 'gridScale': 'child__row_Accelerationcolumn_Horsepower_y', 'grid': True, 'tickCount': {'signal': 'ceil(concat_3_childWidth/40)'}, 'domain': False, 'labels': False, 'aria': False, 'maxExtent': 0, 'minExtent': 0, 'ticks': False, 'zindex': 0}, {'scale': 'child__row_Accelerationcolumn_Horsepower_y', 'orient': 'left', 'gridScale': 'child__row_Accelerationcolumn_Horsepower_x', 'grid': True, 'tickCount': {'signal': 'ceil(concat_3_childHeight/40)'}, 'domain': False, 'labels': False, 'aria': False, 'maxExtent': 0, 'minExtent': 0, 'ticks': False, 'zindex': 0}, {'scale': 'child__row_Accelerationcolumn_Horsepower_x', 'orient': 'bottom', 'grid': False, 'title': 'people', 'labelFlush': True, 'labelOverlap': True, 'tickCount': {'signal': 'ceil(concat_3_childWidth/40)'}, 'zindex': 0}, {'scale': 'child__row_Accelerationcolumn_Horsepower_y', 'orient': 'left', 'grid': False, 'title': 'people', 'minExtent': 30, 'labelOverlap': True, 'tickCount': {'signal': 'ceil(concat_3_childHeight/40)'}, 'zindex': 0}]}, {'type': 'group', 'name': 'child__row_Miles_per_Galloncolumn_Miles_per_Gallon_group', 'style': 'cell', 'encode': {'update': {'width': {'signal': 'concat_3_childWidth'}, 'height': {'signal': 'concat_3_childHeight'}}}, 'signals': [{'name': 'grid_people', 'on': [{'events': [{'source': 'view', 'type': 'dblclick'}], 'update': 'null'}, {'events': {'signal': 'grid_translate_delta'}, 'update': 'panLinear(grid_translate_anchor.extent_x, -grid_translate_delta.x / concat_3_childWidth)'}, {'events': {'signal': 'grid_zoom_delta'}, 'update': 'zoomLinear(domain("child__row_Miles_per_Galloncolumn_Miles_per_Gallon_x"), grid_zoom_anchor.x, grid_zoom_delta)'}], 'push': 'outer'}, {'name': 'grid_tuple', 'on': [{'events': [{'signal': 'grid_people'}], 'update': 'grid_people ? {unit: "child__row_Miles_per_Galloncolumn_Miles_per_Gallon", fields: grid_tuple_fields, values: [grid_people]} : null'}]}, {'name': 'grid_tuple_fields', 'value': [{'field': 'people', 'channel': 'x', 'type': 'R'}]}, {'name': 'grid_translate_anchor', 'value': {}, 'on': [{'events': [{'source': 'scope', 'type': 'pointerdown'}], 'update': '{x: x(unit), y: y(unit), extent_x: domain("child__row_Miles_per_Galloncolumn_Miles_per_Gallon_x")}'}]}, {'name': 'grid_translate_delta', 'value': {}, 'on': [{'events': [{'source': 'window', 'type': 'pointermove', 'consume': True, 'between': [{'source': 'scope', 'type': 'pointerdown'}, {'source': 'window', 'type': 'pointerup'}]}], 'update': '{x: grid_translate_anchor.x - x(unit), y: grid_translate_anchor.y - y(unit)}'}]}, {'name': 'grid_zoom_anchor', 'on': [{'events': [{'source': 'scope', 'type': 'wheel', 'consume': True}], 'update': '{x: invert("child__row_Miles_per_Galloncolumn_Miles_per_Gallon_x", x(unit)), y: invert("child__row_Miles_per_Galloncolumn_Miles_per_Gallon_y", y(unit))}'}]}, {'name': 'grid_zoom_delta', 'on': [{'events': [{'source': 'scope', 'type': 'wheel', 'consume': True}], 'force': True, 'update': 'pow(1.001, event.deltaY * pow(16, event.deltaMode))'}]}, {'name': 'grid_modify', 'on': [{'events': {'signal': 'grid_tuple'}, 'update': 'modify("grid_store", grid_tuple, true)'}]}], 'marks': [{'name': 'child__row_Miles_per_Galloncolumn_Miles_per_Gallon_marks', 'type': 'symbol', 'clip': True, 'style': ['point'], 'interactive': True, 'from': {'data': 'data_10'}, 'encode': {'update': {'opacity': {'value': 0.7}, 'fill': {'value': 'transparent'}, 'stroke': {'scale': 'color', 'field': 'age'}, 'ariaRoleDescription': {'value': 'point'}, 'description': {'signal': '"people: " + (format(datum["people"], "")) + "; age: " + (isValid(datum["age"]) ? datum["age"] : ""+datum["age"])'}, 'x': {'scale': 'child__row_Miles_per_Galloncolumn_Miles_per_Gallon_x', 'field': 'people'}, 'y': {'scale': 'child__row_Miles_per_Galloncolumn_Miles_per_Gallon_y', 'field': 'people'}}}}], 'axes': [{'scale': 'child__row_Miles_per_Galloncolumn_Miles_per_Gallon_x', 'orient': 'bottom', 'gridScale': 'child__row_Miles_per_Galloncolumn_Miles_per_Gallon_y', 'grid': True, 'tickCount': {'signal': 'ceil(concat_3_childWidth/40)'}, 'domain': False, 'labels': False, 'aria': False, 'maxExtent': 0, 'minExtent': 0, 'ticks': False, 'zindex': 0}, {'scale': 'child__row_Miles_per_Galloncolumn_Miles_per_Gallon_y', 'orient': 'left', 'gridScale': 'child__row_Miles_per_Galloncolumn_Miles_per_Gallon_x', 'grid': True, 'tickCount': {'signal': 'ceil(concat_3_childHeight/40)'}, 'domain': False, 'labels': False, 'aria': False, 'maxExtent': 0, 'minExtent': 0, 'ticks': False, 'zindex': 0}, {'scale': 'child__row_Miles_per_Galloncolumn_Miles_per_Gallon_x', 'orient': 'bottom', 'grid': False, 'title': 'people', 'labelFlush': True, 'labelOverlap': True, 'tickCount': {'signal': 'ceil(concat_3_childWidth/40)'}, 'zindex': 0}, {'scale': 'child__row_Miles_per_Galloncolumn_Miles_per_Gallon_y', 'orient': 'left', 'grid': False, 'title': 'people', 'minExtent': 30, 'labelOverlap': True, 'tickCount': {'signal': 'ceil(concat_3_childHeight/40)'}, 'zindex': 0}]}, {'type': 'group', 'name': 'child__row_Miles_per_Galloncolumn_Acceleration_group', 'style': 'cell', 'encode': {'update': {'width': {'signal': 'concat_3_childWidth'}, 'height': {'signal': 'concat_3_childHeight'}}}, 'signals': [{'name': 'grid_people', 'on': [{'events': [{'source': 'view', 'type': 'dblclick'}], 'update': 'null'}, {'events': {'signal': 'grid_translate_delta'}, 'update': 'panLinear(grid_translate_anchor.extent_x, -grid_translate_delta.x / concat_3_childWidth)'}, {'events': {'signal': 'grid_zoom_delta'}, 'update': 'zoomLinear(domain("child__row_Miles_per_Galloncolumn_Acceleration_x"), grid_zoom_anchor.x, grid_zoom_delta)'}], 'push': 'outer'}, {'name': 'grid_tuple', 'on': [{'events': [{'signal': 'grid_people'}], 'update': 'grid_people ? {unit: "child__row_Miles_per_Galloncolumn_Acceleration", fields: grid_tuple_fields, values: [grid_people]} : null'}]}, {'name': 'grid_tuple_fields', 'value': [{'field': 'people', 'channel': 'x', 'type': 'R'}]}, {'name': 'grid_translate_anchor', 'value': {}, 'on': [{'events': [{'source': 'scope', 'type': 'pointerdown'}], 'update': '{x: x(unit), y: y(unit), extent_x: domain("child__row_Miles_per_Galloncolumn_Acceleration_x")}'}]}, {'name': 'grid_translate_delta', 'value': {}, 'on': [{'events': [{'source': 'window', 'type': 'pointermove', 'consume': True, 'between': [{'source': 'scope', 'type': 'pointerdown'}, {'source': 'window', 'type': 'pointerup'}]}], 'update': '{x: grid_translate_anchor.x - x(unit), y: grid_translate_anchor.y - y(unit)}'}]}, {'name': 'grid_zoom_anchor', 'on': [{'events': [{'source': 'scope', 'type': 'wheel', 'consume': True}], 'update': '{x: invert("child__row_Miles_per_Galloncolumn_Acceleration_x", x(unit)), y: invert("child__row_Miles_per_Galloncolumn_Acceleration_y", y(unit))}'}]}, {'name': 'grid_zoom_delta', 'on': [{'events': [{'source': 'scope', 'type': 'wheel', 'consume': True}], 'force': True, 'update': 'pow(1.001, event.deltaY * pow(16, event.deltaMode))'}]}, {'name': 'grid_modify', 'on': [{'events': {'signal': 'grid_tuple'}, 'update': 'modify("grid_store", grid_tuple, true)'}]}], 'marks': [{'name': 'child__row_Miles_per_Galloncolumn_Acceleration_marks', 'type': 'symbol', 'clip': True, 'style': ['point'], 'interactive': True, 'from': {'data': 'data_10'}, 'encode': {'update': {'opacity': {'value': 0.7}, 'fill': {'value': 'transparent'}, 'stroke': {'scale': 'color', 'field': 'age'}, 'ariaRoleDescription': {'value': 'point'}, 'description': {'signal': '"people: " + (format(datum["people"], "")) + "; age: " + (isValid(datum["age"]) ? datum["age"] : ""+datum["age"])'}, 'x': {'scale': 'child__row_Miles_per_Galloncolumn_Acceleration_x', 'field': 'people'}, 'y': {'scale': 'child__row_Miles_per_Galloncolumn_Acceleration_y', 'field': 'people'}}}}], 'axes': [{'scale': 'child__row_Miles_per_Galloncolumn_Acceleration_x', 'orient': 'bottom', 'gridScale': 'child__row_Miles_per_Galloncolumn_Acceleration_y', 'grid': True, 'tickCount': {'signal': 'ceil(concat_3_childWidth/40)'}, 'domain': False, 'labels': False, 'aria': False, 'maxExtent': 0, 'minExtent': 0, 'ticks': False, 'zindex': 0}, {'scale': 'child__row_Miles_per_Galloncolumn_Acceleration_y', 'orient': 'left', 'gridScale': 'child__row_Miles_per_Galloncolumn_Acceleration_x', 'grid': True, 'tickCount': {'signal': 'ceil(concat_3_childHeight/40)'}, 'domain': False, 'labels': False, 'aria': False, 'maxExtent': 0, 'minExtent': 0, 'ticks': False, 'zindex': 0}, {'scale': 'child__row_Miles_per_Galloncolumn_Acceleration_x', 'orient': 'bottom', 'grid': False, 'title': 'people', 'labelFlush': True, 'labelOverlap': True, 'tickCount': {'signal': 'ceil(concat_3_childWidth/40)'}, 'zindex': 0}, {'scale': 'child__row_Miles_per_Galloncolumn_Acceleration_y', 'orient': 'left', 'grid': False, 'title': 'people', 'minExtent': 30, 'labelOverlap': True, 'tickCount': {'signal': 'ceil(concat_3_childHeight/40)'}, 'zindex': 0}]}, {'type': 'group', 'name': 'child__row_Miles_per_Galloncolumn_Horsepower_group', 'style': 'cell', 'encode': {'update': {'width': {'signal': 'concat_3_childWidth'}, 'height': {'signal': 'concat_3_childHeight'}}}, 'signals': [{'name': 'grid_people', 'on': [{'events': [{'source': 'view', 'type': 'dblclick'}], 'update': 'null'}, {'events': {'signal': 'grid_translate_delta'}, 'update': 'panLinear(grid_translate_anchor.extent_x, -grid_translate_delta.x / concat_3_childWidth)'}, {'events': {'signal': 'grid_zoom_delta'}, 'update': 'zoomLinear(domain("child__row_Miles_per_Galloncolumn_Horsepower_x"), grid_zoom_anchor.x, grid_zoom_delta)'}], 'push': 'outer'}, {'name': 'grid_tuple', 'on': [{'events': [{'signal': 'grid_people'}], 'update': 'grid_people ? {unit: "child__row_Miles_per_Galloncolumn_Horsepower", fields: grid_tuple_fields, values: [grid_people]} : null'}]}, {'name': 'grid_tuple_fields', 'value': [{'field': 'people', 'channel': 'x', 'type': 'R'}]}, {'name': 'grid_translate_anchor', 'value': {}, 'on': [{'events': [{'source': 'scope', 'type': 'pointerdown'}], 'update': '{x: x(unit), y: y(unit), extent_x: domain("child__row_Miles_per_Galloncolumn_Horsepower_x")}'}]}, {'name': 'grid_translate_delta', 'value': {}, 'on': [{'events': [{'source': 'window', 'type': 'pointermove', 'consume': True, 'between': [{'source': 'scope', 'type': 'pointerdown'}, {'source': 'window', 'type': 'pointerup'}]}], 'update': '{x: grid_translate_anchor.x - x(unit), y: grid_translate_anchor.y - y(unit)}'}]}, {'name': 'grid_zoom_anchor', 'on': [{'events': [{'source': 'scope', 'type': 'wheel', 'consume': True}], 'update': '{x: invert("child__row_Miles_per_Galloncolumn_Horsepower_x", x(unit)), y: invert("child__row_Miles_per_Galloncolumn_Horsepower_y", y(unit))}'}]}, {'name': 'grid_zoom_delta', 'on': [{'events': [{'source': 'scope', 'type': 'wheel', 'consume': True}], 'force': True, 'update': 'pow(1.001, event.deltaY * pow(16, event.deltaMode))'}]}, {'name': 'grid_modify', 'on': [{'events': {'signal': 'grid_tuple'}, 'update': 'modify("grid_store", grid_tuple, true)'}]}], 'marks': [{'name': 'child__row_Miles_per_Galloncolumn_Horsepower_marks', 'type': 'symbol', 'clip': True, 'style': ['point'], 'interactive': True, 'from': {'data': 'data_10'}, 'encode': {'update': {'opacity': {'value': 0.7}, 'fill': {'value': 'transparent'}, 'stroke': {'scale': 'color', 'field': 'age'}, 'ariaRoleDescription': {'value': 'point'}, 'description': {'signal': '"people: " + (format(datum["people"], "")) + "; age: " + (isValid(datum["age"]) ? datum["age"] : ""+datum["age"])'}, 'x': {'scale': 'child__row_Miles_per_Galloncolumn_Horsepower_x', 'field': 'people'}, 'y': {'scale': 'child__row_Miles_per_Galloncolumn_Horsepower_y', 'field': 'people'}}}}], 'axes': [{'scale': 'child__row_Miles_per_Galloncolumn_Horsepower_x', 'orient': 'bottom', 'gridScale': 'child__row_Miles_per_Galloncolumn_Horsepower_y', 'grid': True, 'tickCount': {'signal': 'ceil(concat_3_childWidth/40)'}, 'domain': False, 'labels': False, 'aria': False, 'maxExtent': 0, 'minExtent': 0, 'ticks': False, 'zindex': 0}, {'scale': 'child__row_Miles_per_Galloncolumn_Horsepower_y', 'orient': 'left', 'gridScale': 'child__row_Miles_per_Galloncolumn_Horsepower_x', 'grid': True, 'tickCount': {'signal': 'ceil(concat_3_childHeight/40)'}, 'domain': False, 'labels': False, 'aria': False, 'maxExtent': 0, 'minExtent': 0, 'ticks': False, 'zindex': 0}, {'scale': 'child__row_Miles_per_Galloncolumn_Horsepower_x', 'orient': 'bottom', 'grid': False, 'title': 'people', 'labelFlush': True, 'labelOverlap': True, 'tickCount': {'signal': 'ceil(concat_3_childWidth/40)'}, 'zindex': 0}, {'scale': 'child__row_Miles_per_Galloncolumn_Horsepower_y', 'orient': 'left', 'grid': False, 'title': 'people', 'minExtent': 30, 'labelOverlap': True, 'tickCount': {'signal': 'ceil(concat_3_childHeight/40)'}, 'zindex': 0}]}]}], 'scales': [{'name': 'color', 'type': 'ordinal', 'domain': {'data': 'data_10', 'field': 'age', 'sort': True}, 'range': 'category'}, {'name': 'concat_0_x', 'type': 'point', 'domain': {'data': 'source_0', 'field': 'sex', 'sort': True}, 'range': {'step': {'signal': 'concat_0_x_step'}}, 'padding': 0.5}, {'name': 'concat_1_x', 'type': 'point', 'domain': {'fields': [{'data': 'data_1', 'field': 'year_Year'}, {'data': 'source_0', 'field': 'sex'}], 'sort': True}, 'range': {'step': {'signal': 'concat_1_x_step'}}, 'padding': 0.5}, {'name': 'concat_1_y', 'type': 'linear', 'domain': {'fields': [{'data': 'data_1', 'field': 'lower_people'}, {'data': 'data_1', 'field': 'upper_people'}, {'data': 'source_0', 'field': 'people'}]}, 'range': [{'signal': 'concat_1_height'}, 0], 'zero': False, 'nice': True}, {'name': 'concat_2_x', 'type': 'band', 'domain': {'fields': [{'data': 'data_3', 'field': 'sex'}, {'data': 'data_5', 'field': 'sex'}, {'data': 'data_6', 'field': 'sex'}, {'data': 'data_8', 'field': 'sex'}, {'data': 'data_9', 'field': 'sex'}], 'sort': True}, 'range': {'step': {'signal': 'concat_2_x_step'}}, 'paddingInner': 0, 'paddingOuter': 0}, {'name': 'concat_2_y', 'type': 'linear', 'domain': {'fields': [{'data': 'data_3', 'field': 'people'}, {'data': 'data_5', 'field': 'lower_whisker_people'}, {'data': 'data_5', 'field': 'lower_box_people'}, {'data': 'data_6', 'field': 'upper_box_people'}, {'data': 'data_6', 'field': 'upper_whisker_people'}, {'data': 'data_8', 'field': 'lower_box_people'}, {'data': 'data_8', 'field': 'upper_box_people'}, {'data': 'data_9', 'field': 'mid_box_people'}]}, 'range': [{'signal': 'concat_2_height'}, 0], 'nice': True, 'zero': True}, {'name': 'child__row_Horsepowercolumn_Miles_per_Gallon_x', 'type': 'linear', 'domain': {'data': 'data_10', 'field': 'people'}, 'domainRaw': {'signal': 'grid["people"]'}, 'range': [0, {'signal': 'concat_3_childWidth'}], 'nice': True, 'zero': True}, {'name': 'child__row_Horsepowercolumn_Miles_per_Gallon_y', 'type': 'linear', 'domain': {'data': 'data_10', 'field': 'people'}, 'range': [{'signal': 'concat_3_childHeight'}, 0], 'nice': True, 'zero': True}, {'name': 'child__row_Horsepowercolumn_Acceleration_x', 'type': 'linear', 'domain': {'data': 'data_10', 'field': 'people'}, 'domainRaw': {'signal': 'grid["people"]'}, 'range': [0, {'signal': 'concat_3_childWidth'}], 'nice': True, 'zero': True}, {'name': 'child__row_Horsepowercolumn_Acceleration_y', 'type': 'linear', 'domain': {'data': 'data_10', 'field': 'people'}, 'range': [{'signal': 'concat_3_childHeight'}, 0], 'nice': True, 'zero': True}, {'name': 'child__row_Horsepowercolumn_Horsepower_x', 'type': 'linear', 'domain': {'data': 'data_10', 'field': 'people'}, 'domainRaw': {'signal': 'grid["people"]'}, 'range': [0, {'signal': 'concat_3_childWidth'}], 'nice': True, 'zero': True}, {'name': 'child__row_Horsepowercolumn_Horsepower_y', 'type': 'linear', 'domain': {'data': 'data_10', 'field': 'people'}, 'range': [{'signal': 'concat_3_childHeight'}, 0], 'nice': True, 'zero': True}, {'name': 'child__row_Accelerationcolumn_Miles_per_Gallon_x', 'type': 'linear', 'domain': {'data': 'data_10', 'field': 'people'}, 'domainRaw': {'signal': 'grid["people"]'}, 'range': [0, {'signal': 'concat_3_childWidth'}], 'nice': True, 'zero': True}, {'name': 'child__row_Accelerationcolumn_Miles_per_Gallon_y', 'type': 'linear', 'domain': {'data': 'data_10', 'field': 'people'}, 'range': [{'signal': 'concat_3_childHeight'}, 0], 'nice': True, 'zero': True}, {'name': 'child__row_Accelerationcolumn_Acceleration_x', 'type': 'linear', 'domain': {'data': 'data_10', 'field': 'people'}, 'domainRaw': {'signal': 'grid["people"]'}, 'range': [0, {'signal': 'concat_3_childWidth'}], 'nice': True, 'zero': True}, {'name': 'child__row_Accelerationcolumn_Acceleration_y', 'type': 'linear', 'domain': {'data': 'data_10', 'field': 'people'}, 'range': [{'signal': 'concat_3_childHeight'}, 0], 'nice': True, 'zero': True}, {'name': 'child__row_Accelerationcolumn_Horsepower_x', 'type': 'linear', 'domain': {'data': 'data_10', 'field': 'people'}, 'domainRaw': {'signal': 'grid["people"]'}, 'range': [0, {'signal': 'concat_3_childWidth'}], 'nice': True, 'zero': True}, {'name': 'child__row_Accelerationcolumn_Horsepower_y', 'type': 'linear', 'domain': {'data': 'data_10', 'field': 'people'}, 'range': [{'signal': 'concat_3_childHeight'}, 0], 'nice': True, 'zero': True}, {'name': 'child__row_Miles_per_Galloncolumn_Miles_per_Gallon_x', 'type': 'linear', 'domain': {'data': 'data_10', 'field': 'people'}, 'domainRaw': {'signal': 'grid["people"]'}, 'range': [0, {'signal': 'concat_3_childWidth'}], 'nice': True, 'zero': True}, {'name': 'child__row_Miles_per_Galloncolumn_Miles_per_Gallon_y', 'type': 'linear', 'domain': {'data': 'data_10', 'field': 'people'}, 'range': [{'signal': 'concat_3_childHeight'}, 0], 'nice': True, 'zero': True}, {'name': 'child__row_Miles_per_Galloncolumn_Acceleration_x', 'type': 'linear', 'domain': {'data': 'data_10', 'field': 'people'}, 'domainRaw': {'signal': 'grid["people"]'}, 'range': [0, {'signal': 'concat_3_childWidth'}], 'nice': True, 'zero': True}, {'name': 'child__row_Miles_per_Galloncolumn_Acceleration_y', 'type': 'linear', 'domain': {'data': 'data_10', 'field': 'people'}, 'range': [{'signal': 'concat_3_childHeight'}, 0], 'nice': True, 'zero': True}, {'name': 'child__row_Miles_per_Galloncolumn_Horsepower_x', 'type': 'linear', 'domain': {'data': 'data_10', 'field': 'people'}, 'domainRaw': {'signal': 'grid["people"]'}, 'range': [0, {'signal': 'concat_3_childWidth'}], 'nice': True, 'zero': True}, {'name': 'child__row_Miles_per_Galloncolumn_Horsepower_y', 'type': 'linear', 'domain': {'data': 'data_10', 'field': 'people'}, 'range': [{'signal': 'concat_3_childHeight'}, 0], 'nice': True, 'zero': True}], 'legends': [{'title': 'age', 'stroke': 'color', 'symbolType': 'circle', 'encode': {'symbols': {'update': {'fill': {'value': 'transparent'}, 'opacity': {'value': 0.7}}}}}]}
test
"[{\"$schema\":\"https://vega.github.io/schema/vega-lite/v5.json\",\"data\":{\"name\":\"source\"},\"(...TRUNCATED)
"{\"hconcat\":[{\"$schema\":\"https://vega.github.io/schema/vega-lite/v5.json\",\"data\":{\"url\": \(...TRUNCATED)
2
Population
"[{'name': 'age', 'originalIndex': 1, 'vlType': 'nominal', 'type': 'integer', 'stats': {'type': 'num(...TRUNCATED)
"['', '[{\"mark\":\"point\",\"data\":{\"name\":\"source\"},\"encoding\":{\"x\":{\"field\":\"sex\",\"(...TRUNCATED)
"['Add a new blank chart to the dashboard. Add \"sex\" to x. Add sex to x.', 'Plug in my data to vl-(...TRUNCATED)
"['REVISION_STEP_ADD_CHART', 'REVISION_STEP_ADD_TEMPLATE', 'REVISION_STEP_ADD_TEMPLATE', 'REVISION_S(...TRUNCATED)
[4, 4, 4, 4, 1]
17
REVISION_STEP_SET_CONSTANT_COLOR_IN_ALL_CHARTS
"function enumSetConstantColorInAllCharts(parent, stepType, enumerate, sampleSize) {\n if (stepTy(...TRUNCATED)
"[{\"$schema\":\"https://vega.github.io/schema/vega-lite/v5.json\",\"data\":{\"name\":\"source\"},\"(...TRUNCATED)
"[{\"$schema\":\"https://vega.github.io/schema/vega-lite/v5.json\",\"data\":{\"name\":\"source\"},\"(...TRUNCATED)
True
False
False
False
False
False
False
False
False
False
False
False
False
False
False
False
False
False
"{'$schema': 'https://vega.github.io/schema/vega/v5.json', 'background': 'white', 'padding': 5, 'hei(...TRUNCATED)
train
"[{\"mark\":\"point\",\"data\":{\"name\":\"source\"},\"encoding\":{\"x\":{\"field\":\"sex\",\"type\"(...TRUNCATED)
"{\"hconcat\":[{\"mark\":\"point\",\"data\":{\"url\": \"https://gist.githubusercontent.com/light-and(...TRUNCATED)
2
Population
"[{'name': 'age', 'originalIndex': 1, 'vlType': 'nominal', 'type': 'integer', 'stats': {'type': 'num(...TRUNCATED)
"['', '[{\"mark\":\"point\",\"data\":{\"name\":\"source\"},\"encoding\":{\"x\":{\"field\":\"sex\",\"(...TRUNCATED)
"['Add a new blank chart to the dashboard. Add \"sex\" to x. Add sex to x.', 'Plug in my data to vl-(...TRUNCATED)
"['REVISION_STEP_ADD_CHART', 'REVISION_STEP_ADD_TEMPLATE', 'REVISION_STEP_ADD_TEMPLATE', 'REVISION_S(...TRUNCATED)
[4, 4, 4, 4, 1]
17
REVISION_STEP_SET_CONSTANT_COLOR_IN_ALL_CHARTS
"function enumSetConstantColorInAllCharts(parent, stepType, enumerate, sampleSize) {\n if (stepTy(...TRUNCATED)
"[{\"mark\":\"point\",\"data\":{\"name\":\"source\"},\"encoding\":{\"x\":{\"field\":\"sex\",\"type\"(...TRUNCATED)
"[{\"mark\":\"point\",\"data\":{\"name\":\"source\"},\"encoding\":{\"x\":{\"field\":\"sex\",\"type\"(...TRUNCATED)
True
False
False
False
False
False
False
False
False
False
False
False
False
False
False
False
False
False
"{'$schema': 'https://vega.github.io/schema/vega/v5.json', 'background': 'white', 'padding': 5, 'dat(...TRUNCATED)
train
"[{\"mark\":\"point\",\"data\":{\"name\":\"source\"},\"encoding\":{\"x\":{\"field\":\"sex\",\"type\"(...TRUNCATED)
"{\"hconcat\":[{\"mark\":\"point\",\"data\":{\"url\": \"https://gist.githubusercontent.com/light-and(...TRUNCATED)
4
Population
"[{'name': 'age', 'originalIndex': 1, 'vlType': 'nominal', 'type': 'integer', 'stats': {'type': 'num(...TRUNCATED)
"['', '[{\"mark\":\"point\",\"data\":{\"name\":\"source\"},\"encoding\":{\"x\":{\"field\":\"sex\",\"(...TRUNCATED)
"['Add a new blank chart to the dashboard. Add \"sex\" to x. Add sex to x.', 'Plug in my data to vl-(...TRUNCATED)
"['REVISION_STEP_ADD_CHART', 'REVISION_STEP_ADD_TEMPLATE', 'REVISION_STEP_ADD_CHART', 'REVISION_STEP(...TRUNCATED)
[4, 4, 4, 4, 1]
17
REVISION_STEP_SET_CONSTANT_COLOR_IN_ALL_CHARTS
"function enumSetConstantColorInAllCharts(parent, stepType, enumerate, sampleSize) {\n if (stepTy(...TRUNCATED)
"[{\"mark\":\"point\",\"data\":{\"name\":\"source\"},\"encoding\":{\"x\":{\"field\":\"sex\",\"type\"(...TRUNCATED)
"[{\"mark\":\"point\",\"data\":{\"name\":\"source\"},\"encoding\":{\"x\":{\"field\":\"sex\",\"type\"(...TRUNCATED)
True
False
False
False
False
False
False
False
False
False
False
False
False
False
False
False
False
False
"{'$schema': 'https://vega.github.io/schema/vega/v5.json', 'background': 'white', 'padding': 5, 'dat(...TRUNCATED)
train
"[{\"mark\":\"point\",\"data\":{\"name\":\"source\"},\"encoding\":{\"x\":{\"field\":\"sex\",\"type\"(...TRUNCATED)
"{\"hconcat\":[{\"mark\":\"point\",\"data\":{\"url\": \"https://gist.githubusercontent.com/light-and(...TRUNCATED)
4
Population
"[{'name': 'age', 'originalIndex': 1, 'vlType': 'nominal', 'type': 'integer', 'stats': {'type': 'num(...TRUNCATED)
"['', '[{\"mark\":\"point\",\"data\":{\"name\":\"source\"},\"encoding\":{\"x\":{\"field\":\"sex\",\"(...TRUNCATED)
"['Add a new blank chart to the dashboard. Add \"sex\" to x. Add sex to x.', 'Plug in my data to vl-(...TRUNCATED)
"['REVISION_STEP_ADD_CHART', 'REVISION_STEP_ADD_TEMPLATE', 'REVISION_STEP_ADD_CHART', 'REVISION_STEP(...TRUNCATED)
[4, 4, 4, 4, 1]
17
REVISION_STEP_SET_CONSTANT_COLOR_IN_ALL_CHARTS
"function enumSetConstantColorInAllCharts(parent, stepType, enumerate, sampleSize) {\n if (stepTy(...TRUNCATED)
"[{\"mark\":\"point\",\"data\":{\"name\":\"source\"},\"encoding\":{\"x\":{\"field\":\"sex\",\"type\"(...TRUNCATED)
"[{\"mark\":\"point\",\"data\":{\"name\":\"source\"},\"encoding\":{\"x\":{\"field\":\"sex\",\"type\"(...TRUNCATED)
True
False
False
False
False
False
False
False
False
False
False
False
False
False
False
False
False
False
"{'$schema': 'https://vega.github.io/schema/vega/v5.json', 'background': 'white', 'padding': 5, 'dat(...TRUNCATED)
train

Faithful Edits: Benchmarking LLM Steerability in Multi-Visualization Design Space

Dataset

gallery-vl.json: the entire Vega-Lite gallery source code (an array of 787 json specifications)

gallery-vl.zip: rendered Vega-Lite gallery

faithful-edits.zip contains 10,000 rendered dashboards: [file_number].png and [file_number].svg.

faithful-edits.json contains multi-chart dashboards visualizing the cars dataset. It is a big array of objects. Each object contains:

file_number: int, // zero-indexed
train_val_test: str, // we've randomly split our dataset to 70% train, 10% validation, and 20% test

source_code: str, // array of vega-lite specifications in json
source_code_vg: str, // array of vega specifications in json
provenance: str, // comma-separated revision steps from Start (file_number = 0) to the current dashboard


// ALL_CAPS columns are specific rule test results,
// true = testing positive; the dashboard violates this rule,
// false = testing negative, the dashboard passed this rule
CHANNEL_FIELD_SWAP: bool,
CHANNEL_FIELD_SHIFT: bool,
XY_SAME_QUANTITATIVE: bool,
XY_SAME_NOMINAL: bool,
XY_MEASURE_NAMES: bool,
...

// Aggregated quality (dashboard consistency) label,
// true = dashboard is consistent, all rules tested negative
// false = dashboard is inconsistent, at least one rule failed
is_consistent: bool,

parent_id: str, // source code of the dashboard one step before the current dashboard
Downloads last month
3
Edit dataset card