Bar graph added.

This commit is contained in:
prabhatdev
2020-07-28 00:48:25 +05:30
parent d0a6e2667d
commit 194b41124d
3468 changed files with 640611 additions and 169 deletions

106
node_modules/vega-projection/build/vega-projection.js generated vendored Normal file
View File

@@ -0,0 +1,106 @@
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('d3-geo'), require('d3-geo-projection')) :
typeof define === 'function' && define.amd ? define(['exports', 'd3-geo', 'd3-geo-projection'], factory) :
(global = global || self, factory(global.vega = {}, global.d3, global.d3));
}(this, (function (exports, d3Geo, d3GeoProjection) { 'use strict';
var defaultPath = d3Geo.geoPath();
var projectionProperties = [
// standard properties in d3-geo
'clipAngle',
'clipExtent',
'scale',
'translate',
'center',
'rotate',
'parallels',
'precision',
'reflectX',
'reflectY',
// extended properties in d3-geo-projections
'coefficient',
'distance',
'fraction',
'lobes',
'parallel',
'radius',
'ratio',
'spacing',
'tilt'
];
/**
* Augment projections with their type and a copy method.
*/
function create(type, constructor) {
return function projection() {
var p = constructor();
p.type = type;
p.path = d3Geo.geoPath().projection(p);
p.copy = p.copy || function() {
var c = projection();
projectionProperties.forEach(function(prop) {
if (p[prop]) c[prop](p[prop]());
});
c.path.pointRadius(p.path.pointRadius());
return c;
};
return p;
};
}
function projection(type, proj) {
if (!type || typeof type !== 'string') {
throw new Error('Projection type must be a name string.');
}
type = type.toLowerCase();
if (arguments.length > 1) {
projections[type] = create(type, proj);
return this;
} else {
return projections[type] || null;
}
}
function getProjectionPath(proj) {
return (proj && proj.path) || defaultPath;
}
var projections = {
// base d3-geo projection types
albers: d3Geo.geoAlbers,
albersusa: d3Geo.geoAlbersUsa,
azimuthalequalarea: d3Geo.geoAzimuthalEqualArea,
azimuthalequidistant: d3Geo.geoAzimuthalEquidistant,
conicconformal: d3Geo.geoConicConformal,
conicequalarea: d3Geo.geoConicEqualArea,
conicequidistant: d3Geo.geoConicEquidistant,
equalEarth: d3Geo.geoEqualEarth,
equirectangular: d3Geo.geoEquirectangular,
gnomonic: d3Geo.geoGnomonic,
identity: d3Geo.geoIdentity,
mercator: d3Geo.geoMercator,
mollweide: d3GeoProjection.geoMollweide,
naturalEarth1: d3Geo.geoNaturalEarth1,
orthographic: d3Geo.geoOrthographic,
stereographic: d3Geo.geoStereographic,
transversemercator: d3Geo.geoTransverseMercator
};
for (var key in projections) {
projection(key, projections[key]);
}
exports.getProjectionPath = getProjectionPath;
exports.projection = projection;
exports.projectionProperties = projectionProperties;
Object.defineProperty(exports, '__esModule', { value: true });
})));

View File

@@ -0,0 +1 @@
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("d3-geo"),require("d3-geo-projection")):"function"==typeof define&&define.amd?define(["exports","d3-geo","d3-geo-projection"],t):t((e=e||self).vega={},e.d3,e.d3)}(this,(function(e,t,o){"use strict";var r=t.geoPath(),a=["clipAngle","clipExtent","scale","translate","center","rotate","parallels","precision","reflectX","reflectY","coefficient","distance","fraction","lobes","parallel","radius","ratio","spacing","tilt"];function i(e,o){return function r(){var i=o();return i.type=e,i.path=t.geoPath().projection(i),i.copy=i.copy||function(){var e=r();return a.forEach((function(t){i[t]&&e[t](i[t]())})),e.path.pointRadius(i.path.pointRadius()),e},i}}function n(e,t){if(!e||"string"!=typeof e)throw new Error("Projection type must be a name string.");return e=e.toLowerCase(),arguments.length>1?(c[e]=i(e,t),this):c[e]||null}var c={albers:t.geoAlbers,albersusa:t.geoAlbersUsa,azimuthalequalarea:t.geoAzimuthalEqualArea,azimuthalequidistant:t.geoAzimuthalEquidistant,conicconformal:t.geoConicConformal,conicequalarea:t.geoConicEqualArea,conicequidistant:t.geoConicEquidistant,equalEarth:t.geoEqualEarth,equirectangular:t.geoEquirectangular,gnomonic:t.geoGnomonic,identity:t.geoIdentity,mercator:t.geoMercator,mollweide:o.geoMollweide,naturalEarth1:t.geoNaturalEarth1,orthographic:t.geoOrthographic,stereographic:t.geoStereographic,transversemercator:t.geoTransverseMercator};for(var u in c)n(u,c[u]);e.getProjectionPath=function(e){return e&&e.path||r},e.projection=n,e.projectionProperties=a,Object.defineProperty(e,"__esModule",{value:!0})}));