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

39
node_modules/vega-functions/src/functions/scale.js generated vendored Normal file
View File

@@ -0,0 +1,39 @@
import {getScale} from '../scales';
import {bandSpace} from 'vega-scale';
import {isArray} from 'vega-util';
export function bandspace(count, paddingInner, paddingOuter) {
return bandSpace(count || 0, paddingInner || 0, paddingOuter || 0);
}
export function bandwidth(name, group) {
const s = getScale(name, (group || this).context);
return s && s.bandwidth ? s.bandwidth() : 0;
}
export function copy(name, group) {
const s = getScale(name, (group || this).context);
return s ? s.copy() : undefined;
}
export function domain(name, group) {
const s = getScale(name, (group || this).context);
return s ? s.domain() : [];
}
export function invert(name, range, group) {
const s = getScale(name, (group || this).context);
return !s ? undefined
: isArray(range) ? (s.invertRange || s.invert)(range)
: (s.invert || s.invertExtent)(range);
}
export function range(name, group) {
const s = getScale(name, (group || this).context);
return s && s.range ? s.range() : [];
}
export function scale(name, value, group) {
const s = getScale(name, (group || this).context);
return s ? s(value) : undefined;
}