@uwdata/vgplot 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vgplot.js +932 -559
- package/dist/vgplot.min.js +14 -14
- package/package.json +6 -6
- package/src/api.js +63 -8
- package/src/plot/attributes.js +18 -0
- package/src/plot/marks.js +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uwdata/vgplot",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "An API for interactive Mosaic-powered visualizations and dashboards.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"prepublishOnly": "npm run test && npm run lint && npm run build"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@uwdata/mosaic-core": "^0.
|
|
34
|
-
"@uwdata/mosaic-inputs": "^0.
|
|
35
|
-
"@uwdata/mosaic-plot": "^0.
|
|
36
|
-
"@uwdata/mosaic-sql": "^0.
|
|
33
|
+
"@uwdata/mosaic-core": "^0.6.0",
|
|
34
|
+
"@uwdata/mosaic-inputs": "^0.6.0",
|
|
35
|
+
"@uwdata/mosaic-plot": "^0.6.0",
|
|
36
|
+
"@uwdata/mosaic-sql": "^0.6.0"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "51517b28e916e355f4ce0dc6e98aef3a1db3f7b2"
|
|
39
39
|
}
|
package/src/api.js
CHANGED
|
@@ -10,13 +10,50 @@ export {
|
|
|
10
10
|
} from '@uwdata/mosaic-plot';
|
|
11
11
|
|
|
12
12
|
export {
|
|
13
|
-
Query,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
Query,
|
|
14
|
+
agg,
|
|
15
|
+
sql,
|
|
16
|
+
column,
|
|
17
|
+
literal,
|
|
18
|
+
cast,
|
|
19
|
+
castDouble,
|
|
20
|
+
castInteger,
|
|
21
|
+
argmax,
|
|
22
|
+
argmin,
|
|
23
|
+
arrayAgg,
|
|
24
|
+
avg,
|
|
25
|
+
count,
|
|
26
|
+
corr,
|
|
27
|
+
covarPop,
|
|
28
|
+
entropy,
|
|
29
|
+
first,
|
|
30
|
+
kurtosis,
|
|
31
|
+
mad,
|
|
32
|
+
max,
|
|
33
|
+
median,
|
|
34
|
+
min,
|
|
35
|
+
mode,
|
|
36
|
+
last,
|
|
37
|
+
product,
|
|
38
|
+
quantile,
|
|
39
|
+
skewness,
|
|
40
|
+
stddev,
|
|
41
|
+
stddevPop,
|
|
42
|
+
stringAgg,
|
|
43
|
+
sum,
|
|
44
|
+
variance,
|
|
45
|
+
varPop,
|
|
46
|
+
row_number,
|
|
47
|
+
rank,
|
|
48
|
+
dense_rank,
|
|
49
|
+
percent_rank,
|
|
50
|
+
cume_dist,
|
|
51
|
+
ntile,
|
|
52
|
+
lag,
|
|
53
|
+
lead,
|
|
54
|
+
first_value,
|
|
55
|
+
last_value,
|
|
56
|
+
nth_value,
|
|
20
57
|
dateDay, dateMonth, dateMonthDay,
|
|
21
58
|
and, or, not, eq, neq, gt, gte, lt, lte,
|
|
22
59
|
isBetween, isNotBetween,
|
|
@@ -94,6 +131,9 @@ export {
|
|
|
94
131
|
xAriaDescription,
|
|
95
132
|
xReverse,
|
|
96
133
|
xZero,
|
|
134
|
+
xBase,
|
|
135
|
+
xExponent,
|
|
136
|
+
xConstant,
|
|
97
137
|
yScale,
|
|
98
138
|
yDomain,
|
|
99
139
|
yRange,
|
|
@@ -124,6 +164,9 @@ export {
|
|
|
124
164
|
yAriaDescription,
|
|
125
165
|
yReverse,
|
|
126
166
|
yZero,
|
|
167
|
+
yBase,
|
|
168
|
+
yExponent,
|
|
169
|
+
yConstant,
|
|
127
170
|
facetMargin,
|
|
128
171
|
facetMarginTop,
|
|
129
172
|
facetMarginBottom,
|
|
@@ -199,6 +242,9 @@ export {
|
|
|
199
242
|
colorReverse,
|
|
200
243
|
colorZero,
|
|
201
244
|
colorTickFormat,
|
|
245
|
+
colorBase,
|
|
246
|
+
colorExponent,
|
|
247
|
+
colorConstant,
|
|
202
248
|
opacityScale,
|
|
203
249
|
opacityDomain,
|
|
204
250
|
opacityRange,
|
|
@@ -208,18 +254,27 @@ export {
|
|
|
208
254
|
opacityReverse,
|
|
209
255
|
opacityZero,
|
|
210
256
|
opacityTickFormat,
|
|
257
|
+
opacityBase,
|
|
258
|
+
opacityExponent,
|
|
259
|
+
opacityConstant,
|
|
211
260
|
rScale,
|
|
212
261
|
rDomain,
|
|
213
262
|
rRange,
|
|
214
263
|
rClamp,
|
|
215
264
|
rNice,
|
|
216
265
|
rZero,
|
|
266
|
+
rBase,
|
|
267
|
+
rExponent,
|
|
268
|
+
rConstant,
|
|
217
269
|
lengthScale,
|
|
218
270
|
lengthDomain,
|
|
219
271
|
lengthRange,
|
|
220
272
|
lengthClamp,
|
|
221
273
|
lengthNice,
|
|
222
274
|
lengthZero,
|
|
275
|
+
lengthBase,
|
|
276
|
+
lengthExponent,
|
|
277
|
+
lengthConstant,
|
|
223
278
|
projectionType,
|
|
224
279
|
projectionParallels,
|
|
225
280
|
projectionPrecision,
|
|
@@ -249,7 +304,7 @@ export {
|
|
|
249
304
|
tickX, tickY,
|
|
250
305
|
ruleX, ruleY,
|
|
251
306
|
density, densityX, densityY, denseLine,
|
|
252
|
-
raster, rasterTile,
|
|
307
|
+
raster, rasterTile, heatmap,
|
|
253
308
|
contour,
|
|
254
309
|
hexbin, hexgrid,
|
|
255
310
|
regressionY,
|
package/src/plot/attributes.js
CHANGED
|
@@ -104,6 +104,9 @@ export const xAriaLabel = attrf('xAriaLabel');
|
|
|
104
104
|
export const xAriaDescription = attrf('xAriaDescription');
|
|
105
105
|
export const xReverse = attrf('xReverse');
|
|
106
106
|
export const xZero = attrf('xZero');
|
|
107
|
+
export const xBase = attrf('xBase');
|
|
108
|
+
export const xExponent = attrf('xExponent');
|
|
109
|
+
export const xConstant = attrf('xConstant');
|
|
107
110
|
|
|
108
111
|
// y scale attributes
|
|
109
112
|
export const yScale = attrf('yScale');
|
|
@@ -136,6 +139,9 @@ export const yAriaLabel = attrf('yAriaLabel');
|
|
|
136
139
|
export const yAriaDescription = attrf('yAriaDescription');
|
|
137
140
|
export const yReverse = attrf('yReverse');
|
|
138
141
|
export const yZero = attrf('yZero');
|
|
142
|
+
export const yBase = attrf('yBase');
|
|
143
|
+
export const yExponent = attrf('yExponent');
|
|
144
|
+
export const yConstant = attrf('yConstant');
|
|
139
145
|
|
|
140
146
|
// facet attributes
|
|
141
147
|
export const facetMargin = attrf('facetMargin');
|
|
@@ -219,6 +225,9 @@ export const colorLabel = attrf('colorLabel');
|
|
|
219
225
|
export const colorReverse = attrf('colorReverse');
|
|
220
226
|
export const colorZero = attrf('colorZero');
|
|
221
227
|
export const colorTickFormat = attrf('colorTickFormat');
|
|
228
|
+
export const colorBase = attrf('colorBase');
|
|
229
|
+
export const colorExponent = attrf('colorExponent');
|
|
230
|
+
export const colorConstant = attrf('colorConstant');
|
|
222
231
|
|
|
223
232
|
// opacity scale attributes
|
|
224
233
|
export const opacityScale = attrf('opacityScale');
|
|
@@ -230,6 +239,9 @@ export const opacityLabel = attrf('opacityLabel');
|
|
|
230
239
|
export const opacityReverse = attrf('opacityReverse');
|
|
231
240
|
export const opacityZero = attrf('opacityZero');
|
|
232
241
|
export const opacityTickFormat = attrf('opacityTickFormat');
|
|
242
|
+
export const opacityBase = attrf('opacityBase');
|
|
243
|
+
export const opacityExponent = attrf('opacityExponent');
|
|
244
|
+
export const opacityConstant = attrf('opacityConstant');
|
|
233
245
|
|
|
234
246
|
// r scale attributes
|
|
235
247
|
export const rScale = attrf('rScale');
|
|
@@ -238,6 +250,9 @@ export const rRange = attrf('rRange');
|
|
|
238
250
|
export const rClamp = attrf('rClamp');
|
|
239
251
|
export const rNice = attrf('rNice');
|
|
240
252
|
export const rZero = attrf('rZero');
|
|
253
|
+
export const rBase = attrf('rBase');
|
|
254
|
+
export const rExponent = attrf('rExponent');
|
|
255
|
+
export const rConstant = attrf('rConstant');
|
|
241
256
|
|
|
242
257
|
// length scale attributes
|
|
243
258
|
export const lengthScale = attrf('lengthScale');
|
|
@@ -246,6 +261,9 @@ export const lengthRange = attrf('lengthRange');
|
|
|
246
261
|
export const lengthClamp = attrf('lengthClamp');
|
|
247
262
|
export const lengthNice = attrf('lengthNice');
|
|
248
263
|
export const lengthZero = attrf('lengthZero');
|
|
264
|
+
export const lengthBase = attrf('lengthBase');
|
|
265
|
+
export const lengthExponent = attrf('lengthExponent');
|
|
266
|
+
export const lengthConstant = attrf('lengthConstant');
|
|
249
267
|
|
|
250
268
|
// projection attributes
|
|
251
269
|
export const projectionType = attrf('projectionType');
|
package/src/plot/marks.js
CHANGED
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
Density2DMark,
|
|
7
7
|
DenseLineMark,
|
|
8
8
|
GeoMark,
|
|
9
|
+
HeatmapMark,
|
|
9
10
|
HexbinMark,
|
|
10
11
|
RasterMark,
|
|
11
12
|
RasterTileMark,
|
|
@@ -92,6 +93,7 @@ export const densityY = (...args) => explicitType(Density1DMark, 'areaY', ...arg
|
|
|
92
93
|
export const density = (...args) => implicitType(Density2DMark, ...args);
|
|
93
94
|
export const denseLine = (...args) => implicitType(DenseLineMark, ...args);
|
|
94
95
|
export const contour = (...args) => implicitType(ContourMark, ...args);
|
|
96
|
+
export const heatmap = (...args) => implicitType(HeatmapMark, ...args);
|
|
95
97
|
export const raster = (...args) => implicitType(RasterMark, ...args);
|
|
96
98
|
export const rasterTile = (...args) => implicitType(RasterTileMark, ...args);
|
|
97
99
|
|