vega-datasets
Advanced tools
Comparing version 2.1.0 to 2.2.0
{ | ||
"name": "vega-datasets", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "Common repository for example datasets used by Vega related projects.", | ||
"license": "BSD-3-Clause", | ||
"main": "build/vega-datasets", | ||
@@ -20,9 +21,9 @@ "module": "build/src/data", | ||
"@rollup/plugin-json": "^4.1.0", | ||
"@rollup/plugin-node-resolve": "^8.0.1", | ||
"@types/d3-dsv": "^1.0.36", | ||
"d3-dsv": "^1.2.0", | ||
"datalib": "^1.9.2", | ||
"rollup": "^2.16.1", | ||
"terser": "^4.8.0", | ||
"typescript": "^3.9.5" | ||
"@rollup/plugin-node-resolve": "^9.0.0", | ||
"@types/d3-dsv": "^1.1.0", | ||
"d3-dsv": "^2.0.0", | ||
"datalib": "^1.9.3", | ||
"rollup": "^2.28.2", | ||
"terser": "^5.3.3", | ||
"typescript": "^4.0.3" | ||
}, | ||
@@ -29,0 +30,0 @@ "scripts": { |
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : | ||
typeof define === 'function' && define.amd ? define(factory) : | ||
(global = global || self, global.vegaDatasets = factory()); | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.vegaDatasets = factory()); | ||
}(this, (function () { 'use strict'; | ||
@@ -195,5 +195,5 @@ | ||
// https://github.com/d3/d3-dsv/issues/45 | ||
var fixtz = new Date("2019-01-01T00:00").getHours() || new Date("2019-07-01T00:00").getHours(); | ||
const fixtz = new Date("2019-01-01T00:00").getHours() || new Date("2019-07-01T00:00").getHours(); | ||
var version = "2.1.0"; | ||
var version = "2.2.0"; | ||
@@ -260,2 +260,3 @@ var urls = { | ||
'seattle-weather.csv': `https://cdn.jsdelivr.net/npm/vega-datasets@${version}/data/seattle-weather.csv`, | ||
'sp500-2000.csv': `https://cdn.jsdelivr.net/npm/vega-datasets@${version}/data/sp500-2000.csv`, | ||
'sp500.csv': `https://cdn.jsdelivr.net/npm/vega-datasets@${version}/data/sp500.csv`, | ||
@@ -262,0 +263,0 @@ 'stocks.csv': `https://cdn.jsdelivr.net/npm/vega-datasets@${version}/data/stocks.csv`, |
@@ -1,1 +0,1 @@ | ||
!function(t,s){"object"==typeof exports&&"undefined"!=typeof module?module.exports=s():"function"==typeof define&&define.amd?define(s):(t=t||self).vegaDatasets=s()}(this,(function(){"use strict";var t={},s={};function n(t){return new Function("d","return {"+t.map((function(t,s){return JSON.stringify(t)+": d["+s+'] || ""'})).join(",")+"}")}function e(t){var s=Object.create(null),n=[];return t.forEach((function(t){for(var e in t)e in s||n.push(s[e]=e)})),n}function a(t,s){var n=t+"",e=n.length;return e<s?new Array(s-e+1).join(0)+n:n}function d(t){var s,n=t.getUTCHours(),e=t.getUTCMinutes(),d=t.getUTCSeconds(),o=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":((s=t.getUTCFullYear())<0?"-"+a(-s,6):s>9999?"+"+a(s,6):a(s,4))+"-"+a(t.getUTCMonth()+1,2)+"-"+a(t.getUTCDate(),2)+(o?"T"+a(n,2)+":"+a(e,2)+":"+a(d,2)+"."+a(o,3)+"Z":d?"T"+a(n,2)+":"+a(e,2)+":"+a(d,2)+"Z":e||n?"T"+a(n,2)+":"+a(e,2)+"Z":"")}var o=function(a){var o=new RegExp('["'+a+"\n\r]"),r=a.charCodeAt(0);function i(n,e){var a,d=[],o=n.length,i=0,c=0,v=o<=0,p=!1;function l(){if(v)return s;if(p)return p=!1,t;var e,a,d=i;if(34===n.charCodeAt(d)){for(;i++<o&&34!==n.charCodeAt(i)||34===n.charCodeAt(++i););return(e=i)>=o?v=!0:10===(a=n.charCodeAt(i++))?p=!0:13===a&&(p=!0,10===n.charCodeAt(i)&&++i),n.slice(d+1,e-1).replace(/""/g,'"')}for(;i<o;){if(10===(a=n.charCodeAt(e=i++)))p=!0;else if(13===a)p=!0,10===n.charCodeAt(i)&&++i;else if(a!==r)continue;return n.slice(d,e)}return v=!0,n.slice(d,o)}for(10===n.charCodeAt(o-1)&&--o,13===n.charCodeAt(o-1)&&--o;(a=l())!==s;){for(var j=[];a!==t&&a!==s;)j.push(a),a=l();e&&null==(j=e(j,c++))||d.push(j)}return d}function c(t,s){return t.map((function(t){return s.map((function(s){return p(t[s])})).join(a)}))}function v(t){return t.map(p).join(a)}function p(t){return null==t?"":t instanceof Date?d(t):o.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,s){var e,a,d=i(t,(function(t,d){if(e)return e(t,d-1);a=t,e=s?function(t,s){var e=n(t);return function(n,a){return s(e(n),a,t)}}(t,s):n(t)}));return d.columns=a||[],d},parseRows:i,format:function(t,s){return null==s&&(s=e(t)),[s.map(p).join(a)].concat(c(t,s)).join("\n")},formatBody:function(t,s){return null==s&&(s=e(t)),c(t,s).join("\n")},formatRows:function(t){return t.map(v).join("\n")},formatRow:v,formatValue:p}}(",").parse;function r(t){for(var s in t){var n,e,a=t[s].trim();if(a)if("true"===a)a=!0;else if("false"===a)a=!1;else if("NaN"===a)a=NaN;else if(isNaN(n=+a)){if(!(e=a.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;i&&e[4]&&!e[7]&&(a=a.replace(/-/g,"/").replace(/T/," ")),a=new Date(a)}else a=n;else a=null;t[s]=a}return t}var i=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours(),c={"annual-precip.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/annual-precip.json","anscombe.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/anscombe.json","barley.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/barley.json","budget.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/budget.json","budgets.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/budgets.json","burtin.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/burtin.json","cars.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/cars.json","countries.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/countries.json","crimea.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/crimea.json","driving.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/driving.json","earthquakes.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/earthquakes.json","flare-dependencies.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/flare-dependencies.json","flare.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/flare.json","flights-10k.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/flights-10k.json","flights-200k.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/flights-200k.json","flights-20k.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/flights-20k.json","flights-2k.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/flights-2k.json","flights-5k.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/flights-5k.json","football.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/football.json","gapminder.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/gapminder.json","income.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/income.json","jobs.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/jobs.json","londonBoroughs.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/londonBoroughs.json","londonCentroids.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/londonCentroids.json","londonTubeLines.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/londonTubeLines.json","miserables.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/miserables.json","monarchs.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/monarchs.json","movies.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/movies.json","normal-2d.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/normal-2d.json","obesity.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/obesity.json","ohlc.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/ohlc.json","penguins.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/penguins.json","points.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/points.json","political-contributions.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/political-contributions.json","population.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/population.json","udistrict.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/udistrict.json","unemployment-across-industries.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/unemployment-across-industries.json","uniform-2d.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/uniform-2d.json","us-10m.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/us-10m.json","us-state-capitals.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/us-state-capitals.json","volcano.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/volcano.json","weather.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/weather.json","wheat.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/wheat.json","world-110m.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/world-110m.json","airports.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/airports.csv","birdstrikes.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/birdstrikes.csv","co2-concentration.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/co2-concentration.csv","disasters.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/disasters.csv","flights-3m.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/flights-3m.csv","flights-airport.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/flights-airport.csv","gapminder-health-income.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/gapminder-health-income.csv","github.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/github.csv","iowa-electricity.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/iowa-electricity.csv","la-riots.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/la-riots.csv","lookup_groups.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/lookup_groups.csv","lookup_people.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/lookup_people.csv","population_engineers_hurricanes.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/population_engineers_hurricanes.csv","seattle-weather-hourly-normals.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/seattle-weather-hourly-normals.csv","seattle-weather.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/seattle-weather.csv","sp500.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/sp500.csv","stocks.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/stocks.csv","us-employment.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/us-employment.csv","weather.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/weather.csv","windvectors.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/windvectors.csv","zipcodes.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/zipcodes.csv","unemployment.tsv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/unemployment.tsv","flights-200k.arrow":"https://cdn.jsdelivr.net/npm/vega-datasets@2.1.0/data/flights-200k.arrow"},v=function(t,s,n,e){return new(n||(n=Promise))((function(a,d){function o(t){try{i(e.next(t))}catch(t){d(t)}}function r(t){try{i(e.throw(t))}catch(t){d(t)}}function i(t){var s;t.done?a(t.value):(s=t.value,s instanceof n?s:new n((function(t){t(s)}))).then(o,r)}i((e=e.apply(t,s||[])).next())}))};const p={version:"2.1.0"};for(const t of Object.keys(c)){const s=c[t],n=function(){return v(this,void 0,void 0,(function*(){const n=yield fetch(s);return t.endsWith(".json")?yield n.json():t.endsWith(".csv")?o(yield n.text(),r):yield n.text()}))};n.url=s,p[t]=n}return p})); | ||
!function(t,s){"object"==typeof exports&&"undefined"!=typeof module?module.exports=s():"function"==typeof define&&define.amd?define(s):(t="undefined"!=typeof globalThis?globalThis:t||self).vegaDatasets=s()}(this,(function(){"use strict";var t={},s={};function n(t){return new Function("d","return {"+t.map((function(t,s){return JSON.stringify(t)+": d["+s+'] || ""'})).join(",")+"}")}function e(t){var s=Object.create(null),n=[];return t.forEach((function(t){for(var e in t)e in s||n.push(s[e]=e)})),n}function a(t,s){var n=t+"",e=n.length;return e<s?new Array(s-e+1).join(0)+n:n}function d(t){var s,n=t.getUTCHours(),e=t.getUTCMinutes(),d=t.getUTCSeconds(),o=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":((s=t.getUTCFullYear())<0?"-"+a(-s,6):s>9999?"+"+a(s,6):a(s,4))+"-"+a(t.getUTCMonth()+1,2)+"-"+a(t.getUTCDate(),2)+(o?"T"+a(n,2)+":"+a(e,2)+":"+a(d,2)+"."+a(o,3)+"Z":d?"T"+a(n,2)+":"+a(e,2)+":"+a(d,2)+"Z":e||n?"T"+a(n,2)+":"+a(e,2)+"Z":"")}var o=function(a){var o=new RegExp('["'+a+"\n\r]"),r=a.charCodeAt(0);function i(n,e){var a,d=[],o=n.length,i=0,c=0,v=o<=0,p=!1;function l(){if(v)return s;if(p)return p=!1,t;var e,a,d=i;if(34===n.charCodeAt(d)){for(;i++<o&&34!==n.charCodeAt(i)||34===n.charCodeAt(++i););return(e=i)>=o?v=!0:10===(a=n.charCodeAt(i++))?p=!0:13===a&&(p=!0,10===n.charCodeAt(i)&&++i),n.slice(d+1,e-1).replace(/""/g,'"')}for(;i<o;){if(10===(a=n.charCodeAt(e=i++)))p=!0;else if(13===a)p=!0,10===n.charCodeAt(i)&&++i;else if(a!==r)continue;return n.slice(d,e)}return v=!0,n.slice(d,o)}for(10===n.charCodeAt(o-1)&&--o,13===n.charCodeAt(o-1)&&--o;(a=l())!==s;){for(var j=[];a!==t&&a!==s;)j.push(a),a=l();e&&null==(j=e(j,c++))||d.push(j)}return d}function c(t,s){return t.map((function(t){return s.map((function(s){return p(t[s])})).join(a)}))}function v(t){return t.map(p).join(a)}function p(t){return null==t?"":t instanceof Date?d(t):o.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,s){var e,a,d=i(t,(function(t,d){if(e)return e(t,d-1);a=t,e=s?function(t,s){var e=n(t);return function(n,a){return s(e(n),a,t)}}(t,s):n(t)}));return d.columns=a||[],d},parseRows:i,format:function(t,s){return null==s&&(s=e(t)),[s.map(p).join(a)].concat(c(t,s)).join("\n")},formatBody:function(t,s){return null==s&&(s=e(t)),c(t,s).join("\n")},formatRows:function(t){return t.map(v).join("\n")},formatRow:v,formatValue:p}}(",").parse;function r(t){for(var s in t){var n,e,a=t[s].trim();if(a)if("true"===a)a=!0;else if("false"===a)a=!1;else if("NaN"===a)a=NaN;else if(isNaN(n=+a)){if(!(e=a.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;i&&e[4]&&!e[7]&&(a=a.replace(/-/g,"/").replace(/T/," ")),a=new Date(a)}else a=n;else a=null;t[s]=a}return t}const i=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();var c="2.2.0",v={"annual-precip.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/annual-precip.json","anscombe.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/anscombe.json","barley.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/barley.json","budget.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/budget.json","budgets.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/budgets.json","burtin.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/burtin.json","cars.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/cars.json","countries.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/countries.json","crimea.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/crimea.json","driving.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/driving.json","earthquakes.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/earthquakes.json","flare-dependencies.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/flare-dependencies.json","flare.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/flare.json","flights-10k.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/flights-10k.json","flights-200k.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/flights-200k.json","flights-20k.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/flights-20k.json","flights-2k.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/flights-2k.json","flights-5k.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/flights-5k.json","football.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/football.json","gapminder.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/gapminder.json","income.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/income.json","jobs.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/jobs.json","londonBoroughs.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/londonBoroughs.json","londonCentroids.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/londonCentroids.json","londonTubeLines.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/londonTubeLines.json","miserables.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/miserables.json","monarchs.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/monarchs.json","movies.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/movies.json","normal-2d.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/normal-2d.json","obesity.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/obesity.json","ohlc.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/ohlc.json","penguins.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/penguins.json","points.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/points.json","political-contributions.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/political-contributions.json","population.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/population.json","udistrict.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/udistrict.json","unemployment-across-industries.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/unemployment-across-industries.json","uniform-2d.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/uniform-2d.json","us-10m.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/us-10m.json","us-state-capitals.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/us-state-capitals.json","volcano.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/volcano.json","weather.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/weather.json","wheat.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/wheat.json","world-110m.json":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/world-110m.json","airports.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/airports.csv","birdstrikes.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/birdstrikes.csv","co2-concentration.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/co2-concentration.csv","disasters.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/disasters.csv","flights-3m.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/flights-3m.csv","flights-airport.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/flights-airport.csv","gapminder-health-income.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/gapminder-health-income.csv","github.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/github.csv","iowa-electricity.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/iowa-electricity.csv","la-riots.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/la-riots.csv","lookup_groups.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/lookup_groups.csv","lookup_people.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/lookup_people.csv","population_engineers_hurricanes.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/population_engineers_hurricanes.csv","seattle-weather-hourly-normals.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/seattle-weather-hourly-normals.csv","seattle-weather.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/seattle-weather.csv","sp500-2000.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/sp500-2000.csv","sp500.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/sp500.csv","stocks.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/stocks.csv","us-employment.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/us-employment.csv","weather.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/weather.csv","windvectors.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/windvectors.csv","zipcodes.csv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/zipcodes.csv","unemployment.tsv":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/unemployment.tsv","flights-200k.arrow":"https://cdn.jsdelivr.net/npm/vega-datasets@2.2.0/data/flights-200k.arrow"},p=function(t,s,n,e){return new(n||(n=Promise))((function(a,d){function o(t){try{i(e.next(t))}catch(t){d(t)}}function r(t){try{i(e.throw(t))}catch(t){d(t)}}function i(t){var s;t.done?a(t.value):(s=t.value,s instanceof n?s:new n((function(t){t(s)}))).then(o,r)}i((e=e.apply(t,s||[])).next())}))};const l={version:c};for(const t of Object.keys(v)){const s=v[t],n=function(){return p(this,void 0,void 0,(function*(){const n=yield fetch(s);return t.endsWith(".json")?yield n.json():t.endsWith(".csv")?o(yield n.text(),r):yield n.text()}))};n.url=s,l[t]=n}return l})); |
@@ -0,1 +1,9 @@ | ||
### Version 2.2 | ||
- Add `sp500-2000.csv`. | ||
### Version 2.1 | ||
- Add `version` property to js module. | ||
### Version 2.0 | ||
@@ -11,3 +19,3 @@ | ||
- Convert `birdstrikes.json` to `birdstrikes.csv` and use ISO 8601 dates. | ||
- Convert `movies.json` to use column names with spaces use ISO 8601 dates. | ||
- Convert `movies.json` to use column names with spaces and use ISO 8601 dates. | ||
- Remove `climate.json`. | ||
@@ -14,0 +22,0 @@ - Replace `seattle-temps.csv` with more general `seattle-weather-hourly-normals.csv`. |
{ | ||
"name": "vega-datasets", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "Common repository for example datasets used by Vega related projects.", | ||
"license": "BSD-3-Clause", | ||
"main": "build/vega-datasets", | ||
@@ -20,9 +21,9 @@ "module": "build/src/data", | ||
"@rollup/plugin-json": "^4.1.0", | ||
"@rollup/plugin-node-resolve": "^8.0.1", | ||
"@types/d3-dsv": "^1.0.36", | ||
"d3-dsv": "^1.2.0", | ||
"datalib": "^1.9.2", | ||
"rollup": "^2.16.1", | ||
"terser": "^4.8.0", | ||
"typescript": "^3.9.5" | ||
"@rollup/plugin-node-resolve": "^9.0.0", | ||
"@types/d3-dsv": "^1.1.0", | ||
"d3-dsv": "^2.0.0", | ||
"datalib": "^1.9.3", | ||
"rollup": "^2.28.2", | ||
"terser": "^5.3.3", | ||
"typescript": "^4.0.3" | ||
}, | ||
@@ -29,0 +30,0 @@ "scripts": { |
@@ -7,3 +7,3 @@ # Vega Datasets | ||
Collection of datasets used in Vega and Vega-Lite examples. This data lives at https://github.com/vega/vega-datasets and https://cdn.jsdelivr.net/npm/vega-dataset. | ||
Collection of datasets used in Vega and Vega-Lite examples. This data lives at https://github.com/vega/vega-datasets and https://cdn.jsdelivr.net/npm/vega-datasets. | ||
@@ -14,3 +14,3 @@ Common repository for example datasets used by Vega related projects. Keep changes to this repository minimal as other projects (Vega, Vega Editor, Vega-Lite, Polestar, Voyager) use this data in their tests and for examples. | ||
To access the data in Observable, you can import `vega-dataset`. Try our [example notebook](https://observablehq.com/@vega/vega-datasets). To access these datasets from Python, you can use the [Vega datasets python package](https://github.com/jakevdp/vega_datasets). To access them from Julia, you can use the [VegaDatasets.jl julia package](https://github.com/davidanthoff/VegaDatasets.jl). | ||
To access the data in Observable, you can import `vega-dataset`. Try our [example notebook](https://observablehq.com/@vega/vega-datasets). To access these datasets from Python, you can use the [Vega datasets python package](https://github.com/altair-viz/vega_datasets). To access them from Julia, you can use the [VegaDatasets.jl julia package](https://github.com/davidanthoff/VegaDatasets.jl). | ||
@@ -17,0 +17,0 @@ ## Versioning |
@@ -134,2 +134,6 @@ # Sources | ||
## `sp500-2000.csv` | ||
S&P 500 index values from 2000 to 2020, retrieved from [Yahoo Finance](https://finance.yahoo.com/quote/%5EDJI/history/). | ||
## `stocks.csv` | ||
@@ -136,0 +140,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33769934
85
165467
4