{ "$schema": "https://vega.github.io/schema/vega/v5.json", "background": "white", "padding": 5, "width": 200, "height": 200, "style": "cell", "data": [ { "name": "query_result", "values": [ { "order_id": "IN-2011-47883", "order_date": 1293840000000, "ship_date": 1294444800000, "ship_mode": "Standard Class", "customer_id": "JH-15985", "customer_name": "Joseph Holt", "segment": "Consumer", "city": "Wagga Wagga", "state": "New South Wales", "country": "Australia", "postal_code": null, "market": "APAC", "region": "Oceania", "product_id": "OFF-SU-10000618", "category": "Office Supplies", "sub_category": "Supplies", "product_name": "Acme Trimmer, High Speed", "sales": 120.3659973145, "quantity": 3, "discount": 0.1000000015, "profit": 36.0359992981, "shipping_cost": 9.720000267, "order_priority": "Medium" }, { "order_id": "IT-2011-3647632", "order_date": 1293840000000, "ship_date": 1294185600000, "ship_mode": "Second Class", "customer_id": "EM-14140", "customer_name": "Eugene Moren", "segment": "Home Office", "city": "Stockholm", "state": "Stockholm", "country": "Sweden", "postal_code": null, "market": "EU", "region": "North", "product_id": "OFF-PA-10001492", "category": "Office Supplies", "sub_category": "Paper", "product_name": "Enermax Note Cards, Premium", "sales": 44.8650016785, "quantity": 3, "discount": 0.5, "profit": -26.0550003052, "shipping_cost": 4.8200001717, "order_priority": "High" }, { "order_id": "IN-2011-47883", "order_date": 1293840000000, "ship_date": 1294444800000, "ship_mode": "Standard Class", "customer_id": "JH-15985", "customer_name": "Joseph Holt", "segment": "Consumer", "city": "Wagga Wagga", "state": "New South Wales", "country": "Australia", "postal_code": null, "market": "APAC", "region": "Oceania", "product_id": "OFF-PA-10001968", "category": "Office Supplies", "sub_category": "Paper", "product_name": "Eaton Computer Printout Paper, 8.5 x 11", "sales": 55.2420005798, "quantity": 2, "discount": 0.1000000015, "profit": 15.3420000076, "shipping_cost": 1.7999999523, "order_priority": "Medium" }, { "order_id": "CA-2011-115161", "order_date": 1296518400000, "ship_date": 1296691200000, "ship_mode": "First Class", "customer_id": "LC-17050", "customer_name": "Liz Carlisle", "segment": "Consumer", "city": "Mission Viejo", "state": "California", "country": "United States", "postal_code": "92691", "market": "US", "region": "West", "product_id": "FUR-BO-10003966", "category": "Furniture", "sub_category": "Bookcases", "product_name": "Sauder Facets Collection Library, Sky Alder Finish", "sales": 290.6659851074, "quantity": 2, "discount": 0.150000006, "profit": 3.4196000099, "shipping_cost": 54.6399993896, "order_priority": "High" }, { "order_id": "ID-2011-56493", "order_date": 1296518400000, "ship_date": 1296691200000, "ship_mode": "Second Class", "customer_id": "SP-20650", "customer_name": "Stephanie Phelps", "segment": "Corporate", "city": "Yingcheng", "state": "Hubei", "country": "China", "postal_code": null, "market": "APAC", "region": "North Asia", "product_id": "OFF-ST-10002161", "category": "Office Supplies", "sub_category": "Storage", "product_name": "Tenex Trays, Single Width", "sales": 162.7200012207, "quantity": 3, "discount": 0, "profit": 68.3099975586, "shipping_cost": 44.3600006104, "order_priority": "Critical" }, { "order_id": "US-2011-118892", "order_date": 1296518400000, "ship_date": 1296950400000, "ship_mode": "Standard Class", "customer_id": "DH-13075", "customer_name": "Dave Hallsten", "segment": "Corporate", "city": "San Miguelito", "state": "Panama", "country": "Panama", "postal_code": null, "market": "LATAM", "region": "Central", "product_id": "OFF-AP-10002317", "category": "Office Supplies", "sub_category": "Appliances", "product_name": "Hamilton Beach Refrigerator, Silver", "sales": 400.7040100098, "quantity": 2, "discount": 0.400000006, "profit": 20.0240001678, "shipping_cost": 21.3799991608, "order_priority": "Medium" }, { "order_id": "ES-2011-5268439", "order_date": 1296518400000, "ship_date": 1296691200000, "ship_mode": "Second Class", "customer_id": "GH-14485", "customer_name": "Gene Hale", "segment": "Corporate", "city": "La Rochelle", "state": "Poitou-Charentes", "country": "France", "postal_code": null, "market": "EU", "region": "Central", "product_id": "OFF-AR-10001529", "category": "Office Supplies", "sub_category": "Art", "product_name": "Binney & Smith Pencil Sharpener, Easy-Erase", "sales": 139.6499938965, "quantity": 5, "discount": 0, "profit": 15.3000001907, "shipping_cost": 19.2299995422, "order_priority": "High" }, { "order_id": "US-2011-118892", "order_date": 1296518400000, "ship_date": 1296950400000, "ship_mode": "Standard Class", "customer_id": "DH-13075", "customer_name": "Dave Hallsten", "segment": "Corporate", "city": "San Miguelito", "state": "Panama", "country": "Panama", "postal_code": null, "market": "LATAM", "region": "Central", "product_id": "TEC-AC-10001221", "category": "Technology", "sub_category": "Accessories", "product_name": "Memorex Memory Card, USB", "sales": 81.9840011597, "quantity": 2, "discount": 0.400000006, "profit": -19.1359996796, "shipping_cost": 6.2100000381, "order_priority": "Medium" }, { "order_id": "IN-2011-30733", "order_date": 1296518400000, "ship_date": 1296691200000, "ship_mode": "Second Class", "customer_id": "PO-18865", "customer_name": "Patrick O'Donnell", "segment": "Consumer", "city": "Dhaka", "state": "Dhaka", "country": "Bangladesh", "postal_code": null, "market": "APAC", "region": "Central Asia", "product_id": "OFF-BI-10003012", "category": "Office Supplies", "sub_category": "Binders", "product_name": "Wilson Jones Hole Reinforcements, Economy", "sales": 22.6499996185, "quantity": 5, "discount": 0, "profit": 9.6000003815, "shipping_cost": 5.2899999619, "order_priority": "Critical" }, { "order_id": "ES-2011-5268439", "order_date": 1296518400000, "ship_date": 1296691200000, "ship_mode": "Second Class", "customer_id": "GH-14485", "customer_name": "Gene Hale", "segment": "Corporate", "city": "La Rochelle", "state": "Poitou-Charentes", "country": "France", "postal_code": null, "market": "EU", "region": "Central", "product_id": "OFF-EN-10004597", "category": "Office Supplies", "sub_category": "Envelopes", "product_name": "GlobeWeis Peel and Seal, Set of 50", "sales": 21.3899993896, "quantity": 1, "discount": 0, "profit": 0, "shipping_cost": 3.3399999142, "order_priority": "High" }, { "order_id": "ES-2011-2205486", "order_date": 1296518400000, "ship_date": 1297036800000, "ship_mode": "Standard Class", "customer_id": "IM-15055", "customer_name": "Ionia McGrath", "segment": "Consumer", "city": "Halle", "state": "North Rhine-Westphalia", "country": "Germany", "postal_code": null, "market": "EU", "region": "Central", "product_id": "OFF-BI-10001717", "category": "Office Supplies", "sub_category": "Binders", "product_name": "Avery Hole Reinforcements, Durable", "sales": 11.8199996948, "quantity": 2, "discount": 0, "profit": 4.1999998093, "shipping_cost": 0.9300000072, "order_priority": "Medium" }, { "order_id": "CA-2011-1800", "order_date": 1298937600000, "ship_date": 1299196800000, "ship_mode": "First Class", "customer_id": "TP-11415", "customer_name": "Tom Prescott", "segment": "Consumer", "city": "Toronto", "state": "Ontario", "country": "Canada", "postal_code": null, "market": "Canada", "region": "Canada", "product_id": "OFF-FEL-10001405", "category": "Office Supplies", "sub_category": "Storage", "product_name": "Fellowes File Cart, Industrial", "sales": 551.1599731445, "quantity": 4, "discount": 0, "profit": 71.6399993896, "shipping_cost": 164.3600006104, "order_priority": "High" }, { "order_id": "UP-2011-3730", "order_date": 1298937600000, "ship_date": 1299283200000, "ship_mode": "Standard Class", "customer_id": "RD-9900", "customer_name": "Ruben Dartt", "segment": "Consumer", "city": "Vinnytsya", "state": "Vinnytsya", "country": "Ukraine", "postal_code": null, "market": "EMEA", "region": "EMEA", "product_id": "TEC-LOG-10003896", "category": "Technology", "sub_category": "Accessories", "product_name": "Logitech Router, Erganomic", "sales": 1470.7800292969, "quantity": 6, "discount": 0, "profit": 264.6000061035, "shipping_cost": 146.5500030518, "order_priority": "Medium" }, { "order_id": "CA-2011-113880", "order_date": 1298937600000, "ship_date": 1299283200000, "ship_mode": "Standard Class", "customer_id": "VF-21715", "customer_name": "Vicky Freymann", "segment": "Home Office", "city": "Elmhurst", "state": "Illinois", "country": "United States", "postal_code": "60126", "market": "US", "region": "Central", "product_id": "FUR-CH-10000863", "category": "Furniture", "sub_category": "Chairs", "product_name": "Novimex Swivel Fabric Task Chair", "sales": 634.116027832, "quantity": 6, "discount": 0.3000000119, "profit": -172.1172027588, "shipping_cost": 70.0500030518, "order_priority": "High" }, { "order_id": "ES-2011-1705541", "order_date": 1298937600000, "ship_date": 1299369600000, "ship_mode": "Standard Class", "customer_id": "TS-21370", "customer_name": "Todd Sumrall", "segment": "Corporate", "city": "Farnborough", "state": "England", "country": "United Kingdom", "postal_code": null, "market": "EU", "region": "North", "product_id": "FUR-CH-10002830", "category": "Furniture", "sub_category": "Chairs", "product_name": "Office Star Rocking Chair, Red", "sales": 704.549987793, "quantity": 5, "discount": 0, "profit": 288.75, "shipping_cost": 64.4000015259, "order_priority": "High" }, { "order_id": "IN-2011-59986", "order_date": 1298937600000, "ship_date": 1299110400000, "ship_mode": "First Class", "customer_id": "KH-16360", "customer_name": "Katherine Hughes", "segment": "Consumer", "city": "Adelaide", "state": "South Australia", "country": "Australia", "postal_code": null, "market": "APAC", "region": "Oceania", "product_id": "TEC-MA-10002520", "category": "Technology", "sub_category": "Machines", "product_name": "Panasonic Receipt Printer, White", "sales": 214.7579956055, "quantity": 2, "discount": 0.1000000015, "profit": 7.1579999924, "shipping_cost": 55.6699981689, "order_priority": "High" }, { "order_id": "UP-2011-3730", "order_date": 1298937600000, "ship_date": 1299283200000, "ship_mode": "Standard Class", "customer_id": "RD-9900", "customer_name": "Ruben Dartt", "segment": "Consumer", "city": "Vinnytsya", "state": "Vinnytsya", "country": "Ukraine", "postal_code": null, "market": "EMEA", "region": "EMEA", "product_id": "TEC-SHA-10004874", "category": "Technology", "sub_category": "Copiers", "product_name": "Sharp Fax Machine, High-Speed", "sales": 587.700012207, "quantity": 2, "discount": 0, "profit": 123.3600006104, "shipping_cost": 42.8800010681, "order_priority": "Medium" }, { "order_id": "ES-2011-1705541", "order_date": 1298937600000, "ship_date": 1299369600000, "ship_mode": "Standard Class", "customer_id": "TS-21370", "customer_name": "Todd Sumrall", "segment": "Corporate", "city": "Farnborough", "state": "England", "country": "United Kingdom", "postal_code": null, "market": "EU", "region": "North", "product_id": "OFF-AR-10004151", "category": "Office Supplies", "sub_category": "Art", "product_name": "BIC Sketch Pad, Blue", "sales": 194.6399993896, "quantity": 4, "discount": 0, "profit": 34.9199981689, "shipping_cost": 25.3899993896, "order_priority": "High" }, { "order_id": "UP-2011-3090", "order_date": 1298937600000, "ship_date": 1298937600000, "ship_mode": "Same Day", "customer_id": "BS-1800", "customer_name": "Bryan Spruell", "segment": "Home Office", "city": "Kherson", "state": "Kherson", "country": "Ukraine", "postal_code": null, "market": "EMEA", "region": "EMEA", "product_id": "FUR-HON-10002424", "category": "Furniture", "sub_category": "Chairs", "product_name": "Hon Steel Folding Chair, Red", "sales": 162.8399963379, "quantity": 2, "discount": 0, "profit": 76.5, "shipping_cost": 24.4200000763, "order_priority": "Medium" }, { "order_id": "CA-2011-1800", "order_date": 1298937600000, "ship_date": 1299196800000, "ship_mode": "First Class", "customer_id": "TP-11415", "customer_name": "Tom Prescott", "segment": "Consumer", "city": "Toronto", "state": "Ontario", "country": "Canada", "postal_code": null, "market": "Canada", "region": "Canada", "product_id": "TEC-APP-10004912", "category": "Technology", "sub_category": "Phones", "product_name": "Apple Speaker Phone, with Caller ID", "sales": 493.200012207, "quantity": 4, "discount": 0, "profit": 123.2399978638, "shipping_cost": 18.1900005341, "order_priority": "High" } ] }, { "name": "data_0", "source": "query_result", "transform": [ { "type": "formula", "expr": "toDate(datum[\"ship_date\"])", "as": "ship_date" }, { "type": "aggregate", "groupby": ["ship_date"], "ops": ["count"], "fields": [null], "as": ["__count"] }, { "type": "filter", "expr": "(isDate(datum[\"ship_date\"]) || (isValid(datum[\"ship_date\"]) && isFinite(+datum[\"ship_date\"])))" } ] } ], "marks": [ { "name": "layer_0_marks", "type": "symbol", "style": ["point"], "from": {"data": "data_0"}, "encode": { "update": { "fill": {"scale": "color", "field": "ship_date"}, "ariaRoleDescription": {"value": "point"}, "description": { "signal": "\"ship_date: \" + (timeFormat(datum[\"ship_date\"], '%b %d, %Y')) + \"; Count of Records: \" + (format(datum[\"__count\"], \"\"))" }, "x": {"scale": "x", "field": "ship_date"}, "y": {"scale": "y", "field": "__count"} } } } ], "scales": [ { "name": "x", "type": "time", "domain": {"data": "data_0", "field": "ship_date"}, "range": [0, {"signal": "width"}] }, { "name": "y", "type": "linear", "domain": {"data": "data_0", "field": "__count"}, "range": [{"signal": "height"}, 0], "nice": true, "zero": true }, { "name": "color", "type": "ordinal", "domain": {"data": "data_0", "field": "ship_date", "sort": true}, "range": "ordinal", "interpolate": "hcl" } ], "axes": [ { "scale": "x", "orient": "bottom", "gridScale": "y", "grid": true, "tickCount": {"signal": "ceil(width/40)"}, "domain": false, "labels": false, "aria": false, "maxExtent": 0, "minExtent": 0, "ticks": false, "zindex": 0 }, { "scale": "y", "orient": "left", "gridScale": "x", "grid": true, "tickCount": {"signal": "ceil(height/40)"}, "domain": false, "labels": false, "aria": false, "maxExtent": 0, "minExtent": 0, "ticks": false, "zindex": 0 }, { "scale": "x", "orient": "bottom", "grid": false, "title": "ship_date", "labelFlush": true, "labelOverlap": true, "tickCount": {"signal": "ceil(width/40)"}, "zindex": 0 }, { "scale": "y", "orient": "left", "grid": false, "title": "Count of Records", "labelOverlap": true, "tickCount": {"signal": "ceil(height/40)"}, "zindex": 0 } ] }