victory-area 30.6.1 → 31.2.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/README.md CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  # VictoryArea
3
2
 
4
3
  `victory-area@^30.0.0` exports `VictoryArea` and `Area` components
@@ -87,13 +86,12 @@ See the [Data Accessors Guide][] for more detail on formatting and processing da
87
86
 
88
87
  See the [Custom Components Guide][] for more detail on creating your own `dataComponents`
89
88
 
90
- *default:* `<Area/>`
89
+ _default:_ `<Area/>`
91
90
 
92
91
  ```jsx
93
92
  dataComponent={<Area events={{ onClick: handleClick }}/>}
94
93
  ```
95
94
 
96
-
97
95
  ### domain
98
96
 
99
97
  `type: array[low, high] || { x: [low, high], y: [low, high] }`
@@ -123,7 +121,7 @@ domainPadding={{x: [10, -10], y: 5}}
123
121
  **note:** `VictoryArea` only renders one element per dataset, so only one event key will be generated.
124
122
 
125
123
  ```jsx
126
- eventKey="x"
124
+ eventKey = "x";
127
125
  ```
128
126
 
129
127
  ### events
@@ -179,7 +177,7 @@ See the [Events Guide][] for more information on defining events.
179
177
 
180
178
  **note:** `VictoryArea` uses [`VictoryClipContainer`][] as its default `groupComponent` `VictoryClipContainer` renders a `<g>` tag with a `clipPath` `def`. This allows continuous data components to transition smoothly when new data points enter and exit. **Supplying a custom `groupComponent` to `VictoryArea` may result in broken animations.**
181
179
 
182
- *default:* `<VictoryClipContainer/>`
180
+ _default:_ `<VictoryClipContainer/>`
183
181
 
184
182
  ```playground
185
183
  <VictoryChart>
@@ -197,7 +195,7 @@ See the [Events Guide][] for more information on defining events.
197
195
 
198
196
  `VictoryArea` uses the standard `height` prop. [Read about it here](https://formidable.com/open-source/victory/docs/common-props#height)
199
197
 
200
- *default (provided by default theme):* `height={300}`
198
+ _default (provided by default theme):_ `height={300}`
201
199
 
202
200
  ```jsx
203
201
  height={400}
@@ -215,7 +213,7 @@ Cartesian area charts may use the following interpolation options: "basis", "car
215
213
 
216
214
  [Explore all the interpolation options][].
217
215
 
218
- *default:* `"linear"`
216
+ _default:_ `"linear"`
219
217
 
220
218
  ```playground
221
219
  <VictoryArea
@@ -230,7 +228,7 @@ Cartesian area charts may use the following interpolation options: "basis", "car
230
228
 
231
229
  `VictoryArea` uses the standard `labelComponent` prop. [Read about it in detail](https://formidable.com/open-source/victory/docs/common-props#labelcomponent)
232
230
 
233
- *default:* `<VictoryLabel renderInPortal/>`
231
+ _default:_ `<VictoryLabel renderInPortal/>`
234
232
 
235
233
  ```playground
236
234
  <VictoryArea
@@ -246,7 +244,6 @@ Cartesian area charts may use the following interpolation options: "basis", "car
246
244
 
247
245
  `VictoryArea` uses the standard `maxDomain` prop. [Read about it in detail](https://formidable.com/open-source/victory/docs/common-props#maxDomain)
248
246
 
249
-
250
247
  ```playground
251
248
  <VictoryChart maxDomain={{ x: 3 }}>
252
249
  <VictoryArea data={sampleData}/>
@@ -259,7 +256,6 @@ Cartesian area charts may use the following interpolation options: "basis", "car
259
256
 
260
257
  `VictoryArea` uses the standard `minDomain` prop. [Read about it in detail](https://formidable.com/open-source/victory/docs/common-props#minDomain)
261
258
 
262
-
263
259
  ```playground
264
260
  <VictoryChart minDomain={{ x: 2 }}>
265
261
  <VictoryArea data={sampleData}/>
@@ -286,7 +282,7 @@ Cartesian area charts may use the following interpolation options: "basis", "car
286
282
  The `name` prop is used to reference a component instance when defining shared events.
287
283
 
288
284
  ```jsx
289
- name="series-1"
285
+ name = "series-1";
290
286
  ```
291
287
 
292
288
  ### origin
@@ -303,7 +299,7 @@ name="series-1"
303
299
 
304
300
  `VictoryArea` uses the standard `padding` prop. [Read about it here](https://formidable.com/open-source/victory/docs/common-props#padding)
305
301
 
306
- *default (provided by default theme):* `padding={50}`
302
+ _default (provided by default theme):_ `padding={50}`
307
303
 
308
304
  ```jsx
309
305
  padding={{ top: 20, bottom: 60 }}
@@ -347,7 +343,7 @@ padding={{ top: 20, bottom: 60 }}
347
343
 
348
344
  `VictoryArea` uses the standard `samples` prop. [Read about it here](https://formidable.com/open-source/victory/docs/common-props#samples)
349
345
 
350
- *default:* `samples={50}`
346
+ _default:_ `samples={50}`
351
347
 
352
348
  ```jsx
353
349
  samples={100}
@@ -360,7 +356,7 @@ samples={100}
360
356
  `VictoryArea` uses the standard `scale` prop. [Read about it here](https://formidable.com/open-source/victory/docs/common-props#scale)
361
357
  Options for scale include "linear", "time", "log", "sqrt" and the `d3-scale` functions that correspond to these options.
362
358
 
363
- *default:* `scale="linear"`
359
+ _default:_ `scale="linear"`
364
360
 
365
361
  ```jsx
366
362
  scale={{x: "linear", y: "log"}}
@@ -385,7 +381,7 @@ scale={{x: "linear", y: "log"}}
385
381
  See the [Data Accessors Guide][] for more detail on formatting and processing data.
386
382
 
387
383
  ```jsx
388
- sortKey="x"
384
+ sortKey = "x";
389
385
  ```
390
386
 
391
387
  ### sortOrder
@@ -394,7 +390,7 @@ sortKey="x"
394
390
 
395
391
  The `sortOrder` prop specifies whether sorted data should be returned in ascending or descending order.
396
392
 
397
- *default:* `sortOrder="ascending"`
393
+ _default:_ `sortOrder="ascending"`
398
394
 
399
395
  ### standalone
400
396
 
@@ -404,7 +400,7 @@ The `sortOrder` prop specifies whether sorted data should be returned in ascendi
404
400
 
405
401
  **note:** When `VictoryArea` is nested within a component like `VictoryChart`, this prop will be set to `false`
406
402
 
407
- *default:* `standalone={true}`
403
+ _default:_ `standalone={true}`
408
404
 
409
405
  ```playground
410
406
  <svg width={300} height={300}>
@@ -423,7 +419,7 @@ The `sortOrder` prop specifies whether sorted data should be returned in ascendi
423
419
 
424
420
  `VictoryArea` uses the standard `style` prop. [Read about it here](https://formidable.com/open-source/victory/docs/common-props#style)
425
421
 
426
- *default (provided by default theme):* See [grayscale theme][] for more detail
422
+ _default (provided by default theme):_ See [grayscale theme][] for more detail
427
423
 
428
424
  ```playground
429
425
  <VictoryArea
@@ -449,7 +445,7 @@ The `sortOrder` prop specifies whether sorted data should be returned in ascendi
449
445
 
450
446
  See the [Themes Guide][] for information about creating custom themes.
451
447
 
452
- *default:* `theme={VictoryTheme.grayscale}`
448
+ _default:_ `theme={VictoryTheme.grayscale}`
453
449
 
454
450
  ```jsx
455
451
  theme={VictoryTheme.material}
@@ -461,7 +457,7 @@ theme={VictoryTheme.material}
461
457
 
462
458
  `VictoryArea` uses the standard `width` prop. [Read about it here](https://formidable.com/open-source/victory/docs/common-props#width)
463
459
 
464
- *default (provided by default theme):* `width={450}`
460
+ _default (provided by default theme):_ `width={450}`
465
461
 
466
462
  ```jsx
467
463
  width={400}
@@ -476,7 +472,7 @@ width={400}
476
472
  See the [Data Accessors Guide][] for more detail on formatting and processing data.
477
473
 
478
474
  ```jsx
479
- x="employee.name"
475
+ x = "employee.name";
480
476
  ```
481
477
 
482
478
  ### y
@@ -508,12 +504,12 @@ See the [Data Accessors Guide][] for more detail on formatting and processing da
508
504
  </VictoryChart>
509
505
  ```
510
506
 
511
- [Animations Guide]: https://formidable.com/open-source/victory/guides/animations
512
- [Data Accessors Guide]: https://formidable.com/open-source/victory/guides/data-accessors
513
- [Custom Components Guide]: https://formidable.com/open-source/victory/guides/custom-components
514
- [Events Guide]: https://formidable.com/open-source/victory/guides/events
515
- [Themes Guide]: https://formidable.com/open-source/victory/guides/themes
516
- [`VictoryChart`]: https://formidable.com/open-source/victory/docs/victory-chart
517
- [`VictoryClipContainer`]: https://formidable.com/open-source/victory/docs/victory-clip-container
507
+ [animations guide]: https://formidable.com/open-source/victory/guides/animations
508
+ [data accessors guide]: https://formidable.com/open-source/victory/guides/data-accessors
509
+ [custom components guide]: https://formidable.com/open-source/victory/guides/custom-components
510
+ [events guide]: https://formidable.com/open-source/victory/guides/events
511
+ [themes guide]: https://formidable.com/open-source/victory/guides/themes
512
+ [`victorychart`]: https://formidable.com/open-source/victory/docs/victory-chart
513
+ [`victoryclipcontainer`]: https://formidable.com/open-source/victory/docs/victory-clip-container
518
514
  [grayscale theme]: https://github.com/FormidableLabs/victory-core/blob/master/src/victory-theme/grayscale.js
519
- [Explore all the interpolation options]: https://formidable.com/open-source/victory/gallery/interpolation
515
+ [explore all the interpolation options]: https://formidable.com/open-source/victory/gallery/interpolation