@d3plus/docs 3.0.5 → 3.0.6
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/.storybook/preview-head.html +5 -0
- package/args/core/charts/AreaPlot.args.jsx +4 -1
- package/args/core/charts/BarChart.args.jsx +5 -1
- package/args/core/charts/BoxWhisker.args.jsx +4 -1
- package/args/core/charts/BumpChart.args.jsx +8 -1
- package/args/core/charts/Donut.args.jsx +4 -2
- package/args/core/charts/Geomap.args.jsx +29 -13
- package/args/core/charts/LinePlot.args.jsx +3 -1
- package/args/core/charts/Matrix.args.jsx +13 -2
- package/args/core/charts/Network.args.jsx +29 -16
- package/args/core/charts/Pack.args.jsx +11 -2
- package/args/core/charts/Pie.args.jsx +8 -1
- package/args/core/charts/Plot.args.jsx +54 -21
- package/args/core/charts/Priestley.args.jsx +6 -0
- package/args/core/charts/Radar.args.jsx +7 -1
- package/args/core/charts/RadialMatrix.args.jsx +15 -4
- package/args/core/charts/Rings.args.jsx +21 -10
- package/args/core/charts/Sankey.args.jsx +17 -5
- package/args/core/charts/Tree.args.jsx +46 -6
- package/args/core/charts/Treemap.args.jsx +15 -5
- package/args/core/charts/Viz.args.jsx +102 -24
- package/args/core/components/Axis.args.jsx +49 -12
- package/args/core/components/AxisBottom.args.jsx +1 -1
- package/args/core/components/AxisLeft.args.jsx +1 -1
- package/args/core/components/AxisRight.args.jsx +1 -1
- package/args/core/components/AxisTop.args.jsx +1 -1
- package/args/core/components/ColorScale.args.jsx +37 -10
- package/args/core/components/Legend.args.jsx +21 -5
- package/args/core/components/TextBox.args.jsx +40 -7
- package/args/core/components/Timeline.args.jsx +29 -5
- package/args/core/components/Tooltip.args.jsx +40 -12
- package/args/core/shapes/Area.args.jsx +11 -1
- package/args/core/shapes/Bar.args.jsx +10 -1
- package/args/core/shapes/Box.args.jsx +19 -5
- package/args/core/shapes/Circle.args.jsx +4 -1
- package/args/core/shapes/Image.args.jsx +13 -1
- package/args/core/shapes/Line.args.jsx +7 -1
- package/args/core/shapes/Path.args.jsx +4 -1
- package/args/core/shapes/Rect.args.jsx +4 -1
- package/args/core/shapes/Shape.args.jsx +49 -13
- package/args/core/shapes/Whisker.args.jsx +13 -2
- package/args/core/utils/BaseClass.args.jsx +4 -0
- package/args/core/utils/accessor.args.jsx +1 -3
- package/args/core/utils/constant.args.jsx +1 -1
- package/args/data/dataConcat.args.jsx +1 -1
- package/args/data/dataLoad.args.jsx +1 -1
- package/args/data/isData.args.jsx +1 -3
- package/args/data/merge.args.jsx +1 -1
- package/args/data/unique.args.jsx +1 -1
- package/args/dom/attrize.args.jsx +1 -3
- package/args/dom/elem.args.jsx +1 -3
- package/args/dom/fontExists.args.jsx +1 -1
- package/args/dom/isObject.args.jsx +1 -3
- package/args/dom/parseSides.args.jsx +1 -1
- package/args/dom/stylize.args.jsx +1 -3
- package/args/dom/textWidth.args.jsx +1 -1
- package/args/export/saveElement.args.jsx +1 -3
- package/args/format/formatDate.args.jsx +2 -4
- package/args/math/closest.args.jsx +1 -1
- package/args/math/largestRect.args.jsx +1 -1
- package/args/math/lineIntersection.args.jsx +4 -4
- package/args/math/pointDistance.args.jsx +2 -2
- package/args/math/pointDistanceSquared.args.jsx +2 -2
- package/args/math/pointRotate.args.jsx +2 -2
- package/args/math/polygonInside.args.jsx +2 -2
- package/args/math/polygonRayCast.args.jsx +2 -2
- package/args/math/polygonRotate.args.jsx +2 -2
- package/args/math/segmentBoxContains.args.jsx +3 -3
- package/args/math/segmentsIntersect.args.jsx +4 -4
- package/helpers/configify.js +2 -10
- package/package.json +6 -6
- package/packages/core/charts/Tree.stories.jsx +40 -0
|
@@ -24,6 +24,7 @@ export const argTypes = assign(
|
|
|
24
24
|
{
|
|
25
25
|
active: {
|
|
26
26
|
control: {},
|
|
27
|
+
description: "If *value* is specified, sets the active method to the specified function and returns the current class instance.",
|
|
27
28
|
table: {
|
|
28
29
|
defaultValue: {
|
|
29
30
|
summary: "undefined"
|
|
@@ -39,6 +40,7 @@ export const argTypes = assign(
|
|
|
39
40
|
type: "object"
|
|
40
41
|
},
|
|
41
42
|
defaultValue: "{}",
|
|
43
|
+
description: "If *value* is specified, sets the aggregation method for each key in the object and returns the current class instance.",
|
|
42
44
|
table: {
|
|
43
45
|
defaultValue: {
|
|
44
46
|
summary: "{}"
|
|
@@ -54,6 +56,7 @@ export const argTypes = assign(
|
|
|
54
56
|
type: "boolean"
|
|
55
57
|
},
|
|
56
58
|
defaultValue: true,
|
|
59
|
+
description: "Sets the \"aria-hidden\" attribute of the containing SVG element. The default value is \"false\", but it you need to hide the SVG from screen readers set this property to \"true\".",
|
|
57
60
|
table: {
|
|
58
61
|
defaultValue: {
|
|
59
62
|
summary: true
|
|
@@ -66,10 +69,10 @@ export const argTypes = assign(
|
|
|
66
69
|
},
|
|
67
70
|
attribution: {
|
|
68
71
|
control: {
|
|
69
|
-
type: "
|
|
72
|
+
type: "boolean"
|
|
70
73
|
},
|
|
71
74
|
defaultValue: false,
|
|
72
|
-
description: "
|
|
75
|
+
description: "Sets text to be shown positioned absolute on top of the visualization in the bottom-right corner. This is most often used in Geomaps to display the copyright of map tiles. The text is rendered as HTML, so any valid HTML string will render as expected (eg. anchor links work).",
|
|
73
76
|
table: {
|
|
74
77
|
defaultValue: {
|
|
75
78
|
summary: false
|
|
@@ -85,6 +88,7 @@ export const argTypes = assign(
|
|
|
85
88
|
type: "object"
|
|
86
89
|
},
|
|
87
90
|
defaultValue: "{background: rgba(255, 255, 255, 0.75), border: 1px solid rgba(0, 0, 0, 0.25), color: rgba(0, 0, 0, 0.75), display: block, font: `400 11px/11px ${fontFamilyStringify(fontFamily)}`, margin: 5px, opacity: 0.75, padding: 4px 6px 3px}",
|
|
91
|
+
description: "If *value* is specified, sets the config method for the back button and returns the current class instance.",
|
|
88
92
|
table: {
|
|
89
93
|
defaultValue: {
|
|
90
94
|
summary: "{background: rgba(255, 255, 255, 0.75), border: 1px solid rgba(0, 0, 0, 0.25), color: rgba(0, 0, 0, 0.75), display: block, font: `400 11px/11px ${fontFamilyStringify(fontFamily)}`, margin: 5px, opacity: 0.75, padding: 4px 6px 3px}"
|
|
@@ -100,6 +104,7 @@ export const argTypes = assign(
|
|
|
100
104
|
type: "object"
|
|
101
105
|
},
|
|
102
106
|
defaultValue: "{fontSize: 10, padding: 5, resize: false}",
|
|
107
|
+
description: "If *value* is specified, sets the config method for the back button and returns the current class instance.",
|
|
103
108
|
table: {
|
|
104
109
|
defaultValue: {
|
|
105
110
|
summary: "{fontSize: 10, padding: 5, resize: false}"
|
|
@@ -115,6 +120,7 @@ export const argTypes = assign(
|
|
|
115
120
|
type: "boolean"
|
|
116
121
|
},
|
|
117
122
|
defaultValue: true,
|
|
123
|
+
description: "Enables a lru cache that stores up to 5 previously loaded files/URLs. Helpful when constantly writing over the data array with a URL in the render function of a react component.",
|
|
118
124
|
table: {
|
|
119
125
|
defaultValue: {
|
|
120
126
|
summary: true
|
|
@@ -130,6 +136,7 @@ export const argTypes = assign(
|
|
|
130
136
|
type: "text"
|
|
131
137
|
},
|
|
132
138
|
defaultValue: "(d, i) => this._groupBy.0(d, i)",
|
|
139
|
+
description: "Defines the main color to be used for each data point in a visualization. Can be either an accessor function or a string key to reference in each data point. If a color value is returned, it will be used as is. If a string is returned, a unique color will be assigned based on the string.",
|
|
133
140
|
table: {
|
|
134
141
|
defaultValue: {
|
|
135
142
|
detail: "(d, i) => this._groupBy.0(d, i)",
|
|
@@ -145,6 +152,7 @@ export const argTypes = assign(
|
|
|
145
152
|
control: {
|
|
146
153
|
type: "text"
|
|
147
154
|
},
|
|
155
|
+
description: "Defines the value to be used for a color scale. Can be either an accessor function or a string key to reference in each data point.",
|
|
148
156
|
table: {
|
|
149
157
|
defaultValue: {
|
|
150
158
|
summary: "undefined"
|
|
@@ -160,6 +168,7 @@ export const argTypes = assign(
|
|
|
160
168
|
type: "object"
|
|
161
169
|
},
|
|
162
170
|
defaultValue: "{axisConfig: {rounding: inside}, scale: jenks}",
|
|
171
|
+
description: "A pass-through to the config method of ColorScale.",
|
|
163
172
|
table: {
|
|
164
173
|
defaultValue: {
|
|
165
174
|
summary: "{axisConfig: {rounding: inside}, scale: jenks}"
|
|
@@ -175,6 +184,7 @@ export const argTypes = assign(
|
|
|
175
184
|
type: "number"
|
|
176
185
|
},
|
|
177
186
|
defaultValue: 600,
|
|
187
|
+
description: "Sets the maximum pixel size for drawing the color scale: width for horizontal scales and height for vertical scales.",
|
|
178
188
|
table: {
|
|
179
189
|
defaultValue: {
|
|
180
190
|
summary: 600
|
|
@@ -190,6 +200,7 @@ export const argTypes = assign(
|
|
|
190
200
|
type: "boolean"
|
|
191
201
|
},
|
|
192
202
|
defaultValue: "defaultPadding",
|
|
203
|
+
description: "Tells the colorScale whether or not to use the internal padding defined by the visualization in it's positioning. For example, d3plus-plot will add padding on the left so that the colorScale appears centered above the x-axis. By default, this padding is only applied on screens larger than 600 pixels wide.",
|
|
193
204
|
table: {
|
|
194
205
|
defaultValue: {
|
|
195
206
|
summary: "defaultPadding"
|
|
@@ -205,6 +216,7 @@ export const argTypes = assign(
|
|
|
205
216
|
type: "text"
|
|
206
217
|
},
|
|
207
218
|
defaultValue: "() => this._width > this._height * 1.5 ? right : bottom",
|
|
219
|
+
description: "Defines which side of the visualization to anchor the color scale. Acceptable values are `\"top\"`, `\"bottom\"`, `\"left\"`, `\"right\"`, and `false`. A `false` value will cause the color scale to not be displayed, but will still color shapes based on the scale.",
|
|
208
220
|
table: {
|
|
209
221
|
defaultValue: {
|
|
210
222
|
detail: "() => this._width > this._height * 1.5 ? right : bottom",
|
|
@@ -218,13 +230,13 @@ export const argTypes = assign(
|
|
|
218
230
|
},
|
|
219
231
|
data: {
|
|
220
232
|
control: {
|
|
221
|
-
type: "
|
|
233
|
+
type: "object"
|
|
222
234
|
},
|
|
223
|
-
defaultValue: "[
|
|
224
|
-
description: "
|
|
235
|
+
defaultValue: "[ ]",
|
|
236
|
+
description: "Sets the primary data array to be used when drawing the visualization. The value passed should be an *Array* of objects or a *String* representing a filepath or URL to be loaded. The following filetypes are supported: `csv`, `tsv`, `txt`, and `json`.\n\nIf your data URL needs specific headers to be set, an Object with \"url\" and \"headers\" keys may also be passed.\n\nAdditionally, a custom formatting function can be passed as a second argument to this method. This custom function will be passed the data that has been loaded, as long as there are no errors. This function should return the final array of obejcts to be used as the primary data array. For example, some JSON APIs return the headers split from the data values to save bandwidth. These would need be joined using a custom formatter.\n\nIf you would like to specify certain configuration options based on the yet-to-be-loaded data, you can also return a full `config` object from the data formatter (including the new `data` array as a key in the object).\n\nIf *data* is not specified, this method returns the current primary data array, which defaults to an empty array (`[]`);",
|
|
225
237
|
table: {
|
|
226
238
|
defaultValue: {
|
|
227
|
-
summary: "[
|
|
239
|
+
summary: "[ ]"
|
|
228
240
|
}
|
|
229
241
|
},
|
|
230
242
|
type: {
|
|
@@ -237,6 +249,7 @@ export const argTypes = assign(
|
|
|
237
249
|
type: "number"
|
|
238
250
|
},
|
|
239
251
|
defaultValue: 100,
|
|
252
|
+
description: "If the number of visible data points exceeds this number, the default hover behavior will be disabled (helpful for very large visualizations bogging down the DOM with opacity updates).",
|
|
240
253
|
table: {
|
|
241
254
|
defaultValue: {
|
|
242
255
|
summary: 100
|
|
@@ -251,6 +264,7 @@ export const argTypes = assign(
|
|
|
251
264
|
control: {
|
|
252
265
|
type: "number"
|
|
253
266
|
},
|
|
267
|
+
description: "If *value* is specified, sets the depth to the specified number and returns the current class instance. The *value* should correspond with an index in the [groupBy](#groupBy) array.",
|
|
254
268
|
table: {
|
|
255
269
|
defaultValue: {
|
|
256
270
|
summary: "undefined"
|
|
@@ -266,7 +280,7 @@ export const argTypes = assign(
|
|
|
266
280
|
type: "boolean"
|
|
267
281
|
},
|
|
268
282
|
defaultValue: true,
|
|
269
|
-
description: "
|
|
283
|
+
description: "If the width and/or height of a Viz is not user-defined, it is determined by the size of it's parent element. When this method is set to `true`, the Viz will listen for the `window.onresize` event and adjust it's dimensions accordingly.",
|
|
270
284
|
table: {
|
|
271
285
|
defaultValue: {
|
|
272
286
|
summary: true
|
|
@@ -282,7 +296,7 @@ export const argTypes = assign(
|
|
|
282
296
|
type: "number"
|
|
283
297
|
},
|
|
284
298
|
defaultValue: 400,
|
|
285
|
-
description: "
|
|
299
|
+
description: "When resizing the browser window, this is the millisecond delay to trigger the resize event.",
|
|
286
300
|
table: {
|
|
287
301
|
defaultValue: {
|
|
288
302
|
summary: 400
|
|
@@ -298,7 +312,7 @@ export const argTypes = assign(
|
|
|
298
312
|
type: "boolean"
|
|
299
313
|
},
|
|
300
314
|
defaultValue: true,
|
|
301
|
-
description: "
|
|
315
|
+
description: "Toggles whether or not the Viz should try to detect if it visible in the current viewport. When this method is set to `true`, the Viz will only be rendered when it has entered the viewport either through scrolling or if it's display or visibility is changed.",
|
|
302
316
|
table: {
|
|
303
317
|
defaultValue: {
|
|
304
318
|
summary: true
|
|
@@ -314,7 +328,7 @@ export const argTypes = assign(
|
|
|
314
328
|
type: "number"
|
|
315
329
|
},
|
|
316
330
|
defaultValue: 1000,
|
|
317
|
-
description: "
|
|
331
|
+
description: "The interval, in milliseconds, for checking if the visualization is visible on the page.",
|
|
318
332
|
table: {
|
|
319
333
|
defaultValue: {
|
|
320
334
|
summary: 1000
|
|
@@ -329,6 +343,7 @@ export const argTypes = assign(
|
|
|
329
343
|
control: {
|
|
330
344
|
type: "text"
|
|
331
345
|
},
|
|
346
|
+
description: "If *value* is specified, sets the discrete accessor to the specified method name (usually an axis) and returns the current class instance.",
|
|
332
347
|
table: {
|
|
333
348
|
defaultValue: {
|
|
334
349
|
summary: "undefined"
|
|
@@ -344,6 +359,7 @@ export const argTypes = assign(
|
|
|
344
359
|
type: "boolean"
|
|
345
360
|
},
|
|
346
361
|
defaultValue: false,
|
|
362
|
+
description: "Shows a button that allows for downloading the current visualization.",
|
|
347
363
|
table: {
|
|
348
364
|
defaultValue: {
|
|
349
365
|
summary: false
|
|
@@ -359,6 +375,7 @@ export const argTypes = assign(
|
|
|
359
375
|
type: "object"
|
|
360
376
|
},
|
|
361
377
|
defaultValue: "{type: png}",
|
|
378
|
+
description: "Sets specific options of the saveElement function used when downloading the visualization.",
|
|
362
379
|
table: {
|
|
363
380
|
defaultValue: {
|
|
364
381
|
summary: "{type: png}"
|
|
@@ -374,6 +391,7 @@ export const argTypes = assign(
|
|
|
374
391
|
type: "text"
|
|
375
392
|
},
|
|
376
393
|
defaultValue: "top",
|
|
394
|
+
description: "Defines which control group to add the download button into.",
|
|
377
395
|
table: {
|
|
378
396
|
defaultValue: {
|
|
379
397
|
summary: "top"
|
|
@@ -389,6 +407,7 @@ export const argTypes = assign(
|
|
|
389
407
|
type: "number"
|
|
390
408
|
},
|
|
391
409
|
defaultValue: 600,
|
|
410
|
+
description: "If *ms* is specified, sets the animation duration to the specified number and returns the current class instance. If *ms* is not specified, returns the current animation duration.",
|
|
392
411
|
table: {
|
|
393
412
|
defaultValue: {
|
|
394
413
|
summary: 600
|
|
@@ -401,6 +420,7 @@ export const argTypes = assign(
|
|
|
401
420
|
},
|
|
402
421
|
filter: {
|
|
403
422
|
control: {},
|
|
423
|
+
description: "If *value* is specified, sets the filter to the specified function and returns the current class instance.",
|
|
404
424
|
table: {
|
|
405
425
|
defaultValue: {
|
|
406
426
|
summary: "undefined"
|
|
@@ -414,6 +434,7 @@ export const argTypes = assign(
|
|
|
414
434
|
fontFamily: {
|
|
415
435
|
control: {},
|
|
416
436
|
defaultValue: "fontFamily",
|
|
437
|
+
description: "If *value* is specified, sets the filter to the specified function and returns the current class instance.",
|
|
417
438
|
table: {
|
|
418
439
|
defaultValue: {
|
|
419
440
|
summary: "fontFamily"
|
|
@@ -426,12 +447,13 @@ export const argTypes = assign(
|
|
|
426
447
|
},
|
|
427
448
|
groupBy: {
|
|
428
449
|
control: {
|
|
429
|
-
type: "
|
|
450
|
+
type: "object"
|
|
430
451
|
},
|
|
431
|
-
defaultValue: "[
|
|
452
|
+
defaultValue: "[ d => d[\"id\"] ]",
|
|
453
|
+
description: "Defines the mapping between data and shape. The value can be a String matching a key in each data point (default is \"id\"), or an accessor Function that returns a unique value for each data point. Additionally, an Array of these values may be provided if the visualization supports nested hierarchies.",
|
|
432
454
|
table: {
|
|
433
455
|
defaultValue: {
|
|
434
|
-
detail: "[
|
|
456
|
+
detail: "[ d => d[\"id\"] ]",
|
|
435
457
|
summary: "function"
|
|
436
458
|
}
|
|
437
459
|
},
|
|
@@ -445,6 +467,7 @@ export const argTypes = assign(
|
|
|
445
467
|
type: "number"
|
|
446
468
|
},
|
|
447
469
|
defaultValue: "window.innerHeight",
|
|
470
|
+
description: "If *value* is specified, sets the overall height to the specified number and returns the current class instance.",
|
|
448
471
|
table: {
|
|
449
472
|
defaultValue: {
|
|
450
473
|
summary: "window.innerHeight"
|
|
@@ -460,6 +483,7 @@ export const argTypes = assign(
|
|
|
460
483
|
type: "text"
|
|
461
484
|
},
|
|
462
485
|
defaultValue: "#aaa",
|
|
486
|
+
description: "Defines the color used for legend shapes when the corresponding grouping is hidden from display (by clicking on the legend).",
|
|
463
487
|
table: {
|
|
464
488
|
defaultValue: {
|
|
465
489
|
summary: "#aaa"
|
|
@@ -475,6 +499,7 @@ export const argTypes = assign(
|
|
|
475
499
|
type: "number"
|
|
476
500
|
},
|
|
477
501
|
defaultValue: 0.5,
|
|
502
|
+
description: "Defines the opacity used for legend labels when the corresponding grouping is hidden from display (by clicking on the legend).",
|
|
478
503
|
table: {
|
|
479
504
|
defaultValue: {
|
|
480
505
|
summary: 0.5
|
|
@@ -487,6 +512,7 @@ export const argTypes = assign(
|
|
|
487
512
|
},
|
|
488
513
|
hover: {
|
|
489
514
|
control: {},
|
|
515
|
+
description: "If *value* is specified, sets the hover method to the specified function and returns the current class instance.",
|
|
490
516
|
table: {
|
|
491
517
|
defaultValue: {
|
|
492
518
|
summary: "undefined"
|
|
@@ -501,6 +527,7 @@ export const argTypes = assign(
|
|
|
501
527
|
control: {
|
|
502
528
|
type: "text"
|
|
503
529
|
},
|
|
530
|
+
description: "If *value* is specified, sets the label accessor to the specified function or string and returns the current class instance.",
|
|
504
531
|
table: {
|
|
505
532
|
defaultValue: {
|
|
506
533
|
summary: "undefined"
|
|
@@ -516,6 +543,7 @@ export const argTypes = assign(
|
|
|
516
543
|
type: "text"
|
|
517
544
|
},
|
|
518
545
|
defaultValue: "\"auto\"",
|
|
546
|
+
description: "The behavior to be used when calculating the position and size of each shape's label(s). The value passed can either be the _String_ name of the behavior to be used for all shapes, or an accessor _Function_ that will be provided each data point and will be expected to return the behavior to be used for that data point. The availability and options for this method depend on the default logic for each Shape. As an example, the values \"outside\" or \"inside\" can be set for Bar shapes, whose \"auto\" default will calculate the best position dynamically based on the available space.",
|
|
519
547
|
table: {
|
|
520
548
|
defaultValue: {
|
|
521
549
|
summary: "\"auto\""
|
|
@@ -531,6 +559,7 @@ export const argTypes = assign(
|
|
|
531
559
|
type: "boolean"
|
|
532
560
|
},
|
|
533
561
|
defaultValue: "(config, arr) => {\n const maxGrouped = max(arr, (d, i)=>{\n const id = this._groupBy[this._legendDepth].bind(this)(d, i);\n return id instanceof Array ? id.length : 1;\n });\n return arr.length > 1 && maxGrouped <= 2;\n}",
|
|
562
|
+
description: "If *value* is specified, toggles the legend based on the specified boolean and returns the current class instance.",
|
|
534
563
|
table: {
|
|
535
564
|
defaultValue: {
|
|
536
565
|
detail: "(config, arr) => {\n const maxGrouped = max(arr, (d, i)=>{\n const id = this._groupBy[this._legendDepth].bind(this)(d, i);\n return id instanceof Array ? id.length : 1;\n });\n return arr.length > 1 && maxGrouped <= 2;\n}",
|
|
@@ -547,6 +576,7 @@ export const argTypes = assign(
|
|
|
547
576
|
type: "object"
|
|
548
577
|
},
|
|
549
578
|
defaultValue: "{label: legendLabel.bind(this), shapeConfig: {ariaLabel: legendLabel.bind(this), labelConfig: {fontColor: undefined, fontResize: false, padding: 0}}}",
|
|
579
|
+
description: "If *value* is specified, the object is passed to the legend's config method.",
|
|
550
580
|
table: {
|
|
551
581
|
defaultValue: {
|
|
552
582
|
summary: "{label: legendLabel.bind(this), shapeConfig: {ariaLabel: legendLabel.bind(this), labelConfig: {fontColor: undefined, fontResize: false, padding: 0}}}"
|
|
@@ -562,6 +592,7 @@ export const argTypes = assign(
|
|
|
562
592
|
type: "boolean"
|
|
563
593
|
},
|
|
564
594
|
defaultValue: false,
|
|
595
|
+
description: "Defines the click functionality of categorical legend squares. When set to false, clicking will hide that category and shift+clicking will solo that category. When set to true, clicking with solo that category and shift+clicking will hide that category.",
|
|
565
596
|
table: {
|
|
566
597
|
defaultValue: {
|
|
567
598
|
summary: false
|
|
@@ -577,6 +608,7 @@ export const argTypes = assign(
|
|
|
577
608
|
type: "boolean"
|
|
578
609
|
},
|
|
579
610
|
defaultValue: "defaultPadding",
|
|
611
|
+
description: "Tells the legend whether or not to use the internal padding defined by the visualization in it's positioning. For example, d3plus-plot will add padding on the left so that the legend appears centered underneath the x-axis. By default, this padding is only applied on screens larger than 600 pixels wide.",
|
|
580
612
|
table: {
|
|
581
613
|
defaultValue: {
|
|
582
614
|
summary: "defaultPadding"
|
|
@@ -592,6 +624,7 @@ export const argTypes = assign(
|
|
|
592
624
|
type: "text"
|
|
593
625
|
},
|
|
594
626
|
defaultValue: "() => this._width > this._height * 1.5 ? right : bottom",
|
|
627
|
+
description: "Defines which side of the visualization to anchor the legend. Expected values are `\"top\"`, `\"bottom\"`, `\"left\"`, and `\"right\"`.",
|
|
595
628
|
table: {
|
|
596
629
|
defaultValue: {
|
|
597
630
|
detail: "() => this._width > this._height * 1.5 ? right : bottom",
|
|
@@ -606,6 +639,7 @@ export const argTypes = assign(
|
|
|
606
639
|
legendSort: {
|
|
607
640
|
control: {},
|
|
608
641
|
defaultValue: "(a, b) => this._drawLabel(a).localeCompare(this._drawLabel(b))",
|
|
642
|
+
description: "A JavaScript [sort comparator function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort) used to sort the legend.",
|
|
609
643
|
table: {
|
|
610
644
|
defaultValue: {
|
|
611
645
|
detail: "(a, b) => this._drawLabel(a).localeCompare(this._drawLabel(b))",
|
|
@@ -622,6 +656,7 @@ export const argTypes = assign(
|
|
|
622
656
|
type: "object"
|
|
623
657
|
},
|
|
624
658
|
defaultValue: "{}",
|
|
659
|
+
description: "If *value* is specified, sets the config method for the legend tooltip and returns the current class instance.",
|
|
625
660
|
table: {
|
|
626
661
|
defaultValue: {
|
|
627
662
|
summary: "{}"
|
|
@@ -637,6 +672,7 @@ export const argTypes = assign(
|
|
|
637
672
|
type: "text"
|
|
638
673
|
},
|
|
639
674
|
defaultValue: "() => `\n <div style=\"left: 50%; top: 50%; position: absolute; transform: translate(-50%, -50%);\">\n <strong>${this._translate(Loading Visualization)}</strong>\n <sub style=\"bottom: 0; display: block; line-height: 1; margin-top: 5px;\"><a href=\"https://d3plus.org\" target=\"_blank\">${this._translate(Powered by D3plus)}</a></sub>\n </div>`",
|
|
675
|
+
description: "Sets the inner HTML of the status message that is displayed when loading AJAX requests and displaying errors. Must be a valid HTML string or a function that, when passed this Viz instance, returns a valid HTML string.",
|
|
640
676
|
table: {
|
|
641
677
|
defaultValue: {
|
|
642
678
|
detail: "() => `\n <div style=\"left: 50%; top: 50%; position: absolute; transform: translate(-50%, -50%);\">\n <strong>${this._translate(Loading Visualization)}</strong>\n <sub style=\"bottom: 0; display: block; line-height: 1; margin-top: 5px;\"><a href=\"https://d3plus.org\" target=\"_blank\">${this._translate(Powered by D3plus)}</a></sub>\n </div>`",
|
|
@@ -653,6 +689,7 @@ export const argTypes = assign(
|
|
|
653
689
|
type: "boolean"
|
|
654
690
|
},
|
|
655
691
|
defaultValue: true,
|
|
692
|
+
description: "Toggles the visibility of the status message that is displayed when loading AJAX requests and displaying errors.",
|
|
656
693
|
table: {
|
|
657
694
|
defaultValue: {
|
|
658
695
|
summary: true
|
|
@@ -665,9 +702,10 @@ export const argTypes = assign(
|
|
|
665
702
|
},
|
|
666
703
|
messageMask: {
|
|
667
704
|
control: {
|
|
668
|
-
type: "
|
|
705
|
+
type: "text"
|
|
669
706
|
},
|
|
670
707
|
defaultValue: "rgba(0, 0, 0, 0.05)",
|
|
708
|
+
description: "Sets the color of the mask used underneath the status message that is displayed when loading AJAX requests and displaying errors. Additionally, `false` will turn off the mask completely.",
|
|
671
709
|
table: {
|
|
672
710
|
defaultValue: {
|
|
673
711
|
summary: "rgba(0, 0, 0, 0.05)"
|
|
@@ -683,6 +721,7 @@ export const argTypes = assign(
|
|
|
683
721
|
type: "object"
|
|
684
722
|
},
|
|
685
723
|
defaultValue: "{bottom: 0, left: 0, position: absolute, right: 0, text-align: center, top: 0}",
|
|
724
|
+
description: "Defines the CSS style properties for the status message that is displayed when loading AJAX requests and displaying errors.",
|
|
686
725
|
table: {
|
|
687
726
|
defaultValue: {
|
|
688
727
|
summary: "{bottom: 0, left: 0, position: absolute, right: 0, text-align: center, top: 0}"
|
|
@@ -698,6 +737,7 @@ export const argTypes = assign(
|
|
|
698
737
|
type: "text"
|
|
699
738
|
},
|
|
700
739
|
defaultValue: "() => `\n <div style=\"left: 50%; top: 50%; position: absolute; transform: translate(-50%, -50%);\">\n <strong>${this._translate(No Data Available)}</strong>\n </div>`",
|
|
740
|
+
description: "Sets the inner HTML of the status message that is displayed when no data is supplied to the visualization. Must be a valid HTML string or a function that, when passed this Viz instance, returns a valid HTML string.",
|
|
701
741
|
table: {
|
|
702
742
|
defaultValue: {
|
|
703
743
|
detail: "() => `\n <div style=\"left: 50%; top: 50%; position: absolute; transform: translate(-50%, -50%);\">\n <strong>${this._translate(No Data Available)}</strong>\n </div>`",
|
|
@@ -714,6 +754,7 @@ export const argTypes = assign(
|
|
|
714
754
|
type: "boolean"
|
|
715
755
|
},
|
|
716
756
|
defaultValue: true,
|
|
757
|
+
description: "Toggles the visibility of the status message that is displayed when no data is supplied to the visualization.",
|
|
717
758
|
table: {
|
|
718
759
|
defaultValue: {
|
|
719
760
|
summary: true
|
|
@@ -729,6 +770,7 @@ export const argTypes = assign(
|
|
|
729
770
|
type: "text"
|
|
730
771
|
},
|
|
731
772
|
defaultValue: "{click.shape: clickShape.bind(this), click.legend: clickLegend.bind(this), mouseenter: mouseenter.bind(this), mouseleave: mouseleave.bind(this), mousemove.shape: mousemoveShape.bind(this), mousemove.legend: mousemoveLegend.bind(this)}",
|
|
773
|
+
description: "Adds or removes a *listener* to each object for the specified event *typenames*. If a *listener* is not specified, returns the currently assigned listener for the specified event *typename*. Mirrors the core [d3-selection](https://github.com/d3/d3-selection#selection_on) behavior.",
|
|
732
774
|
table: {
|
|
733
775
|
defaultValue: {
|
|
734
776
|
summary: "{click.shape: clickShape.bind(this), click.legend: clickLegend.bind(this), mouseenter: mouseenter.bind(this), mouseleave: mouseleave.bind(this), mousemove.shape: mousemoveShape.bind(this), mousemove.legend: mousemoveLegend.bind(this)}"
|
|
@@ -743,6 +785,7 @@ export const argTypes = assign(
|
|
|
743
785
|
control: {
|
|
744
786
|
type: "object"
|
|
745
787
|
},
|
|
788
|
+
description: "If *value* is specified, sets the parent config used by the wrapper and returns the current class instance.",
|
|
746
789
|
table: {
|
|
747
790
|
defaultValue: {
|
|
748
791
|
summary: "undefined"
|
|
@@ -755,7 +798,7 @@ export const argTypes = assign(
|
|
|
755
798
|
},
|
|
756
799
|
render: {
|
|
757
800
|
control: {},
|
|
758
|
-
description: "
|
|
801
|
+
description: "Draws the visualization given the specified configuration.",
|
|
759
802
|
table: {
|
|
760
803
|
defaultValue: {
|
|
761
804
|
summary: "undefined"
|
|
@@ -771,6 +814,7 @@ export const argTypes = assign(
|
|
|
771
814
|
type: "text"
|
|
772
815
|
},
|
|
773
816
|
defaultValue: "typeofwindow === undefined ? : window",
|
|
817
|
+
description: "If using resize detection, this method allow a custom override of the element to which the resize detection function gets attached.",
|
|
774
818
|
table: {
|
|
775
819
|
defaultValue: {
|
|
776
820
|
summary: "typeofwindow === undefined ? : window"
|
|
@@ -786,6 +830,7 @@ export const argTypes = assign(
|
|
|
786
830
|
type: "text"
|
|
787
831
|
},
|
|
788
832
|
defaultValue: "typeofwindow === undefined ? : window",
|
|
833
|
+
description: "If using scroll or visibility detection, this method allow a custom override of the element to which the scroll detection function gets attached.",
|
|
789
834
|
table: {
|
|
790
835
|
defaultValue: {
|
|
791
836
|
summary: "typeofwindow === undefined ? : window"
|
|
@@ -800,6 +845,7 @@ export const argTypes = assign(
|
|
|
800
845
|
control: {
|
|
801
846
|
type: "text"
|
|
802
847
|
},
|
|
848
|
+
description: "If *selector* is specified, sets the SVG container element to the specified d3 selector or DOM element and returns the current class instance. If *selector* is not specified, returns the current SVG container element, which is `undefined` by default.",
|
|
803
849
|
table: {
|
|
804
850
|
defaultValue: {
|
|
805
851
|
summary: "undefined"
|
|
@@ -815,6 +861,7 @@ export const argTypes = assign(
|
|
|
815
861
|
type: "text"
|
|
816
862
|
},
|
|
817
863
|
defaultValue: "Rect",
|
|
864
|
+
description: "Changes the primary shape used to represent each data point in a visualization. Not all visualizations support changing shapes, this method can be provided the String name of a D3plus shape class (for example, \"Rect\" or \"Circle\"), or an accessor Function that returns the String class name to be used for each individual data point.",
|
|
818
865
|
table: {
|
|
819
866
|
defaultValue: {
|
|
820
867
|
summary: "Rect"
|
|
@@ -822,7 +869,7 @@ export const argTypes = assign(
|
|
|
822
869
|
},
|
|
823
870
|
type: {
|
|
824
871
|
required: false,
|
|
825
|
-
summary: "
|
|
872
|
+
summary: "string | function"
|
|
826
873
|
}
|
|
827
874
|
},
|
|
828
875
|
shapeConfig: {
|
|
@@ -830,6 +877,7 @@ export const argTypes = assign(
|
|
|
830
877
|
type: "object"
|
|
831
878
|
},
|
|
832
879
|
defaultValue: "{ariaLabel: (d, i) => this._drawLabel(d, i), fill: (d, i) => {\n while(d.__d3plus__ && d.data){\n d = d.data;\n i = d.i;\n }\n if (this._colorScale) {\n const c = this._colorScale(d, i);\n if (c !== undefined && c !== null) {\n const scale = this._colorScaleClass._colorScale;\n const colors = this._colorScaleClass.color();\n if (!scale) return colors instanceof Array ? colors[colors.length - 1] : colors;\n else if (!scale.domain().length) return scale.range()[scale.range().length - 1];\n return scale(c);\n }\n }\n const c = this._color(d, i);\n if (color(c)) return c;\n return colorAssign(typeof c === \"string\" ? c : JSON.stringify(c), this._colorDefaults);\n}, labelConfig: {fontColor: (d, i) => {\n const c = typeof this._shapeConfig.fill === \"function\" ? this._shapeConfig.fill(d, i) : this._shapeConfig.fill;\n return colorContrast(c);\n}}, opacity: 1, stroke: (d, i) => {\n const c = typeof this._shapeConfig.fill === \"function\" ? this._shapeConfig.fill(d, i) : this._shapeConfig.fill;\n return color(c).darker(0.25);\n}, role: presentation, strokeWidth: 0}",
|
|
880
|
+
description: "If *value* is specified, sets the config method for each shape and returns the current class instance.",
|
|
833
881
|
table: {
|
|
834
882
|
defaultValue: {
|
|
835
883
|
detail: "{ariaLabel: (d, i) => this._drawLabel(d, i), fill: (d, i) => {\n while(d.__d3plus__ && d.data){\n d = d.data;\n i = d.i;\n }\n if (this._colorScale) {\n const c = this._colorScale(d, i);\n if (c !== undefined && c !== null) {\n const scale = this._colorScaleClass._colorScale;\n const colors = this._colorScaleClass.color();\n if (!scale) return colors instanceof Array ? colors[colors.length - 1] : colors;\n else if (!scale.domain().length) return scale.range()[scale.range().length - 1];\n return scale(c);\n }\n }\n const c = this._color(d, i);\n if (color(c)) return c;\n return colorAssign(typeof c === \"string\" ? c : JSON.stringify(c), this._colorDefaults);\n}, labelConfig: {fontColor: (d, i) => {\n const c = typeof this._shapeConfig.fill === \"function\" ? this._shapeConfig.fill(d, i) : this._shapeConfig.fill;\n return colorContrast(c);\n}}, opacity: 1, stroke: (d, i) => {\n const c = typeof this._shapeConfig.fill === \"function\" ? this._shapeConfig.fill(d, i) : this._shapeConfig.fill;\n return color(c).darker(0.25);\n}, role: presentation, strokeWidth: 0}",
|
|
@@ -845,6 +893,7 @@ export const argTypes = assign(
|
|
|
845
893
|
control: {
|
|
846
894
|
type: "text"
|
|
847
895
|
},
|
|
896
|
+
description: "If *value* is specified, sets the subtitle accessor to the specified function or string and returns the current class instance.",
|
|
848
897
|
table: {
|
|
849
898
|
defaultValue: {
|
|
850
899
|
summary: "undefined"
|
|
@@ -860,6 +909,7 @@ export const argTypes = assign(
|
|
|
860
909
|
type: "object"
|
|
861
910
|
},
|
|
862
911
|
defaultValue: "{ariaHidden: true, fontSize: 12, padding: 5, resize: false, textAnchor: middle}",
|
|
912
|
+
description: "If *value* is specified, sets the config method for the subtitle and returns the current class instance.",
|
|
863
913
|
table: {
|
|
864
914
|
defaultValue: {
|
|
865
915
|
summary: "{ariaHidden: true, fontSize: 12, padding: 5, resize: false, textAnchor: middle}"
|
|
@@ -875,6 +925,7 @@ export const argTypes = assign(
|
|
|
875
925
|
type: "boolean"
|
|
876
926
|
},
|
|
877
927
|
defaultValue: "defaultPadding",
|
|
928
|
+
description: "Tells the subtitle whether or not to use the internal padding defined by the visualization in it's positioning. For example, d3plus-plot will add padding on the left so that the subtitle appears centered above the x-axis. By default, this padding is only applied on screens larger than 600 pixels wide.",
|
|
878
929
|
table: {
|
|
879
930
|
defaultValue: {
|
|
880
931
|
summary: "defaultPadding"
|
|
@@ -890,6 +941,7 @@ export const argTypes = assign(
|
|
|
890
941
|
type: "text"
|
|
891
942
|
},
|
|
892
943
|
defaultValue: "",
|
|
944
|
+
description: "If *value* is specified, sets the description accessor to the specified string and returns the current class instance.",
|
|
893
945
|
table: {
|
|
894
946
|
defaultValue: {
|
|
895
947
|
summary: ""
|
|
@@ -905,6 +957,7 @@ export const argTypes = assign(
|
|
|
905
957
|
type: "text"
|
|
906
958
|
},
|
|
907
959
|
defaultValue: "",
|
|
960
|
+
description: "If *value* is specified, sets the title accessor to the specified string and returns the current class instance.",
|
|
908
961
|
table: {
|
|
909
962
|
defaultValue: {
|
|
910
963
|
summary: ""
|
|
@@ -920,6 +973,7 @@ export const argTypes = assign(
|
|
|
920
973
|
type: "number"
|
|
921
974
|
},
|
|
922
975
|
defaultValue: 0.0001,
|
|
976
|
+
description: "If *value* is specified, sets the threshold for buckets to the specified function or string, and returns the current class instance.",
|
|
923
977
|
table: {
|
|
924
978
|
defaultValue: {
|
|
925
979
|
summary: 0.0001
|
|
@@ -935,6 +989,7 @@ export const argTypes = assign(
|
|
|
935
989
|
type: "number"
|
|
936
990
|
},
|
|
937
991
|
defaultValue: "undefined",
|
|
992
|
+
description: "If *value* is specified, sets the accesor for the value used in the threshold algorithm, and returns the current class instance.",
|
|
938
993
|
table: {
|
|
939
994
|
defaultValue: {
|
|
940
995
|
summary: "undefined"
|
|
@@ -950,6 +1005,7 @@ export const argTypes = assign(
|
|
|
950
1005
|
type: "text"
|
|
951
1006
|
},
|
|
952
1007
|
defaultValue: "() => this._translate(Values)",
|
|
1008
|
+
description: "If *value* is specified, sets the label for the bucket item, and returns the current class instance.",
|
|
953
1009
|
table: {
|
|
954
1010
|
defaultValue: {
|
|
955
1011
|
detail: "() => this._translate(Values)",
|
|
@@ -965,6 +1021,7 @@ export const argTypes = assign(
|
|
|
965
1021
|
control: {
|
|
966
1022
|
type: "text"
|
|
967
1023
|
},
|
|
1024
|
+
description: "If *value* is specified, sets the time accessor to the specified function or string and returns the current class instance.",
|
|
968
1025
|
table: {
|
|
969
1026
|
defaultValue: {
|
|
970
1027
|
summary: "undefined"
|
|
@@ -977,6 +1034,7 @@ export const argTypes = assign(
|
|
|
977
1034
|
},
|
|
978
1035
|
timeFilter: {
|
|
979
1036
|
control: {},
|
|
1037
|
+
description: "If *value* is specified, sets the time filter to the specified function and returns the current class instance.",
|
|
980
1038
|
table: {
|
|
981
1039
|
defaultValue: {
|
|
982
1040
|
summary: "undefined"
|
|
@@ -992,6 +1050,7 @@ export const argTypes = assign(
|
|
|
992
1050
|
type: "boolean"
|
|
993
1051
|
},
|
|
994
1052
|
defaultValue: true,
|
|
1053
|
+
description: "If *value* is specified, toggles the timeline based on the specified boolean and returns the current class instance.",
|
|
995
1054
|
table: {
|
|
996
1055
|
defaultValue: {
|
|
997
1056
|
summary: true
|
|
@@ -1007,6 +1066,7 @@ export const argTypes = assign(
|
|
|
1007
1066
|
type: "object"
|
|
1008
1067
|
},
|
|
1009
1068
|
defaultValue: "{brushing: false, padding: 5}",
|
|
1069
|
+
description: "If *value* is specified, sets the config method for the timeline and returns the current class instance.",
|
|
1010
1070
|
table: {
|
|
1011
1071
|
defaultValue: {
|
|
1012
1072
|
summary: "{brushing: false, padding: 5}"
|
|
@@ -1019,8 +1079,9 @@ export const argTypes = assign(
|
|
|
1019
1079
|
},
|
|
1020
1080
|
timelineDefault: {
|
|
1021
1081
|
control: {
|
|
1022
|
-
type: "
|
|
1082
|
+
type: "object"
|
|
1023
1083
|
},
|
|
1084
|
+
description: "Sets the starting time or range for the timeline. The value provided can either be a single Date/String, or an Array of 2 values representing the min and max.",
|
|
1024
1085
|
table: {
|
|
1025
1086
|
defaultValue: {
|
|
1026
1087
|
summary: "undefined"
|
|
@@ -1036,6 +1097,7 @@ export const argTypes = assign(
|
|
|
1036
1097
|
type: "boolean"
|
|
1037
1098
|
},
|
|
1038
1099
|
defaultValue: "defaultPadding",
|
|
1100
|
+
description: "Tells the timeline whether or not to use the internal padding defined by the visualization in it's positioning. For example, d3plus-plot will add padding on the left so that the timeline appears centered underneath the x-axis. By default, this padding is only applied on screens larger than 600 pixels wide.",
|
|
1039
1101
|
table: {
|
|
1040
1102
|
defaultValue: {
|
|
1041
1103
|
summary: "defaultPadding"
|
|
@@ -1050,6 +1112,7 @@ export const argTypes = assign(
|
|
|
1050
1112
|
control: {
|
|
1051
1113
|
type: "text"
|
|
1052
1114
|
},
|
|
1115
|
+
description: "If *value* is specified, sets the title accessor to the specified function or string and returns the current class instance.",
|
|
1053
1116
|
table: {
|
|
1054
1117
|
defaultValue: {
|
|
1055
1118
|
summary: "undefined"
|
|
@@ -1065,6 +1128,7 @@ export const argTypes = assign(
|
|
|
1065
1128
|
type: "object"
|
|
1066
1129
|
},
|
|
1067
1130
|
defaultValue: "{ariaHidden: true, fontSize: 16, padding: 5, resize: false, textAnchor: middle}",
|
|
1131
|
+
description: "If *value* is specified, sets the config method for the title and returns the current class instance.",
|
|
1068
1132
|
table: {
|
|
1069
1133
|
defaultValue: {
|
|
1070
1134
|
summary: "{ariaHidden: true, fontSize: 16, padding: 5, resize: false, textAnchor: middle}"
|
|
@@ -1080,6 +1144,7 @@ export const argTypes = assign(
|
|
|
1080
1144
|
type: "boolean"
|
|
1081
1145
|
},
|
|
1082
1146
|
defaultValue: "defaultPadding",
|
|
1147
|
+
description: "Tells the title whether or not to use the internal padding defined by the visualization in it's positioning. For example, d3plus-plot will add padding on the left so that the title appears centered above the x-axis. By default, this padding is only applied on screens larger than 600 pixels wide.",
|
|
1083
1148
|
table: {
|
|
1084
1149
|
defaultValue: {
|
|
1085
1150
|
summary: "defaultPadding"
|
|
@@ -1095,6 +1160,7 @@ export const argTypes = assign(
|
|
|
1095
1160
|
type: "boolean"
|
|
1096
1161
|
},
|
|
1097
1162
|
defaultValue: true,
|
|
1163
|
+
description: "If *value* is specified, toggles the tooltip based on the specified boolean and returns the current class instance.",
|
|
1098
1164
|
table: {
|
|
1099
1165
|
defaultValue: {
|
|
1100
1166
|
summary: true
|
|
@@ -1110,6 +1176,7 @@ export const argTypes = assign(
|
|
|
1110
1176
|
type: "object"
|
|
1111
1177
|
},
|
|
1112
1178
|
defaultValue: "{pointerEvents: none, titleStyle: {max-width: 200px}}",
|
|
1179
|
+
description: "If *value* is specified, sets the config method for the tooltip and returns the current class instance.",
|
|
1113
1180
|
table: {
|
|
1114
1181
|
defaultValue: {
|
|
1115
1182
|
summary: "{pointerEvents: none, titleStyle: {max-width: 200px}}"
|
|
@@ -1122,8 +1189,9 @@ export const argTypes = assign(
|
|
|
1122
1189
|
},
|
|
1123
1190
|
total: {
|
|
1124
1191
|
control: {
|
|
1125
|
-
type: "
|
|
1192
|
+
type: "text"
|
|
1126
1193
|
},
|
|
1194
|
+
description: "If *value* is specified, sets the total accessor to the specified function or string and returns the current class instance.",
|
|
1127
1195
|
table: {
|
|
1128
1196
|
defaultValue: {
|
|
1129
1197
|
summary: "undefined"
|
|
@@ -1139,6 +1207,7 @@ export const argTypes = assign(
|
|
|
1139
1207
|
type: "object"
|
|
1140
1208
|
},
|
|
1141
1209
|
defaultValue: "{fontSize: 10, padding: 5, resize: false, textAnchor: middle}",
|
|
1210
|
+
description: "If *value* is specified, sets the config method for the total and returns the current class instance.",
|
|
1142
1211
|
table: {
|
|
1143
1212
|
defaultValue: {
|
|
1144
1213
|
summary: "{fontSize: 10, padding: 5, resize: false, textAnchor: middle}"
|
|
@@ -1152,6 +1221,7 @@ export const argTypes = assign(
|
|
|
1152
1221
|
totalFormat: {
|
|
1153
1222
|
control: {},
|
|
1154
1223
|
defaultValue: "(d) => `${this._translate(Total)}: ${formatAbbreviate(d, this._locale)}`",
|
|
1224
|
+
description: "Formatter function for the value in the total bar.",
|
|
1155
1225
|
table: {
|
|
1156
1226
|
defaultValue: {
|
|
1157
1227
|
detail: "(d) => `${this._translate(Total)}: ${formatAbbreviate(d, this._locale)}`",
|
|
@@ -1168,6 +1238,7 @@ export const argTypes = assign(
|
|
|
1168
1238
|
type: "boolean"
|
|
1169
1239
|
},
|
|
1170
1240
|
defaultValue: "defaultPadding",
|
|
1241
|
+
description: "Tells the total whether or not to use the internal padding defined by the visualization in it's positioning. For example, d3plus-plot will add padding on the left so that the total appears centered above the x-axis. By default, this padding is only applied on screens larger than 600 pixels wide.",
|
|
1171
1242
|
table: {
|
|
1172
1243
|
defaultValue: {
|
|
1173
1244
|
summary: "defaultPadding"
|
|
@@ -1183,6 +1254,7 @@ export const argTypes = assign(
|
|
|
1183
1254
|
type: "number"
|
|
1184
1255
|
},
|
|
1185
1256
|
defaultValue: "window.innerWidth",
|
|
1257
|
+
description: "If *value* is specified, sets the overallwidth to the specified number and returns the current class instance.",
|
|
1186
1258
|
table: {
|
|
1187
1259
|
defaultValue: {
|
|
1188
1260
|
summary: "window.innerWidth"
|
|
@@ -1198,7 +1270,7 @@ export const argTypes = assign(
|
|
|
1198
1270
|
type: "boolean"
|
|
1199
1271
|
},
|
|
1200
1272
|
defaultValue: false,
|
|
1201
|
-
description: "
|
|
1273
|
+
description: "Toggles the ability to zoom/pan the visualization. Certain parameters for zooming are required to be hooked up on a visualization by visualization basis.",
|
|
1202
1274
|
table: {
|
|
1203
1275
|
defaultValue: {
|
|
1204
1276
|
summary: false
|
|
@@ -1214,7 +1286,7 @@ export const argTypes = assign(
|
|
|
1214
1286
|
type: "number"
|
|
1215
1287
|
},
|
|
1216
1288
|
defaultValue: 1,
|
|
1217
|
-
description: "
|
|
1289
|
+
description: "The pixel stroke-width of the zoom brush area.",
|
|
1218
1290
|
table: {
|
|
1219
1291
|
defaultValue: {
|
|
1220
1292
|
summary: 1
|
|
@@ -1230,6 +1302,7 @@ export const argTypes = assign(
|
|
|
1230
1302
|
type: "object"
|
|
1231
1303
|
},
|
|
1232
1304
|
defaultValue: "{fill: #444}",
|
|
1305
|
+
description: "An object containing CSS key/value pairs that is used to style the outer handle area of the zoom brush. Passing `false` will remove all default styling.",
|
|
1233
1306
|
table: {
|
|
1234
1307
|
defaultValue: {
|
|
1235
1308
|
summary: "{fill: #444}"
|
|
@@ -1245,6 +1318,7 @@ export const argTypes = assign(
|
|
|
1245
1318
|
type: "object"
|
|
1246
1319
|
},
|
|
1247
1320
|
defaultValue: "{fill: #777, stroke-width: 0}",
|
|
1321
|
+
description: "An object containing CSS key/value pairs that is used to style the inner selection area of the zoom brush. Passing `false` will remove all default styling.",
|
|
1248
1322
|
table: {
|
|
1249
1323
|
defaultValue: {
|
|
1250
1324
|
summary: "{fill: #777, stroke-width: 0}"
|
|
@@ -1260,6 +1334,7 @@ export const argTypes = assign(
|
|
|
1260
1334
|
type: "object"
|
|
1261
1335
|
},
|
|
1262
1336
|
defaultValue: "{background: rgba(255, 255, 255, 0.75), border: 1px solid rgba(0, 0, 0, 0.75), color: rgba(0, 0, 0, 0.75), display: block, font: `900 15px/21px ${fontFamilyStringify(fontFamily)}`, height: 20px, margin: 5px, opacity: 0.75, padding: 0, text-align: center, width: 20px}",
|
|
1337
|
+
description: "An object containing CSS key/value pairs that is used to style each zoom control button (`.zoom-in`, `.zoom-out`, `.zoom-reset`, and `.zoom-brush`). Passing `false` will remove all default styling.",
|
|
1263
1338
|
table: {
|
|
1264
1339
|
defaultValue: {
|
|
1265
1340
|
summary: "{background: rgba(255, 255, 255, 0.75), border: 1px solid rgba(0, 0, 0, 0.75), color: rgba(0, 0, 0, 0.75), display: block, font: `900 15px/21px ${fontFamilyStringify(fontFamily)}`, height: 20px, margin: 5px, opacity: 0.75, padding: 0, text-align: center, width: 20px}"
|
|
@@ -1275,6 +1350,7 @@ export const argTypes = assign(
|
|
|
1275
1350
|
type: "object"
|
|
1276
1351
|
},
|
|
1277
1352
|
defaultValue: "{background: rgba(0, 0, 0, 0.75), color: rgba(255, 255, 255, 0.75), opacity: 1}",
|
|
1353
|
+
description: "An object containing CSS key/value pairs that is used to style each zoom control button when active (`.zoom-in`, `.zoom-out`, `.zoom-reset`, and `.zoom-brush`). Passing `false` will remove all default styling.",
|
|
1278
1354
|
table: {
|
|
1279
1355
|
defaultValue: {
|
|
1280
1356
|
summary: "{background: rgba(0, 0, 0, 0.75), color: rgba(255, 255, 255, 0.75), opacity: 1}"
|
|
@@ -1290,6 +1366,7 @@ export const argTypes = assign(
|
|
|
1290
1366
|
type: "object"
|
|
1291
1367
|
},
|
|
1292
1368
|
defaultValue: "{cursor: pointer, opacity: 1}",
|
|
1369
|
+
description: "An object containing CSS key/value pairs that is used to style each zoom control button on hover (`.zoom-in`, `.zoom-out`, `.zoom-reset`, and `.zoom-brush`). Passing `false` will remove all default styling.",
|
|
1293
1370
|
table: {
|
|
1294
1371
|
defaultValue: {
|
|
1295
1372
|
summary: "{cursor: pointer, opacity: 1}"
|
|
@@ -1305,7 +1382,7 @@ export const argTypes = assign(
|
|
|
1305
1382
|
type: "number"
|
|
1306
1383
|
},
|
|
1307
1384
|
defaultValue: 2,
|
|
1308
|
-
description: "
|
|
1385
|
+
description: "The multiplier that is used in with the control buttons when zooming in and out.",
|
|
1309
1386
|
table: {
|
|
1310
1387
|
defaultValue: {
|
|
1311
1388
|
summary: 2
|
|
@@ -1321,7 +1398,7 @@ export const argTypes = assign(
|
|
|
1321
1398
|
type: "number"
|
|
1322
1399
|
},
|
|
1323
1400
|
defaultValue: 16,
|
|
1324
|
-
description: "
|
|
1401
|
+
description: "If *value* is specified, sets the max zoom scale to the specified number and returns the current class instance. If *value* is not specified, returns the current max zoom scale.",
|
|
1325
1402
|
table: {
|
|
1326
1403
|
defaultValue: {
|
|
1327
1404
|
summary: 16
|
|
@@ -1337,7 +1414,7 @@ export const argTypes = assign(
|
|
|
1337
1414
|
type: "number"
|
|
1338
1415
|
},
|
|
1339
1416
|
defaultValue: 20,
|
|
1340
|
-
description: "
|
|
1417
|
+
description: "A pixel value to be used to pad all sides of a zoomed area.",
|
|
1341
1418
|
table: {
|
|
1342
1419
|
defaultValue: {
|
|
1343
1420
|
summary: 20
|
|
@@ -1353,7 +1430,7 @@ export const argTypes = assign(
|
|
|
1353
1430
|
type: "boolean"
|
|
1354
1431
|
},
|
|
1355
1432
|
defaultValue: true,
|
|
1356
|
-
description: "
|
|
1433
|
+
description: "If *value* is specified, toggles panning to the specified boolean and returns the current class instance. If *value* is not specified, returns the current panning value.",
|
|
1357
1434
|
table: {
|
|
1358
1435
|
defaultValue: {
|
|
1359
1436
|
summary: true
|
|
@@ -1369,6 +1446,7 @@ export const argTypes = assign(
|
|
|
1369
1446
|
type: "boolean"
|
|
1370
1447
|
},
|
|
1371
1448
|
defaultValue: true,
|
|
1449
|
+
description: "If *value* is specified, toggles scroll zooming to the specified boolean and returns the current class instance. If *value* is not specified, returns the current scroll zooming value.",
|
|
1372
1450
|
table: {
|
|
1373
1451
|
defaultValue: {
|
|
1374
1452
|
summary: true
|