victory-pie 37.1.0 → 37.1.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # victory-pie
2
2
 
3
+ ## 37.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix victory-native container styles ([`eae3fe5dd`](https://github.com/FormidableLabs/victory/commit/eae3fe5dde175e68e146576655cb2e8054ad6456))
8
+
9
+ ## 37.1.1
10
+
3
11
  ## 37.1.0
4
12
 
5
13
  ### Minor Changes
@@ -6411,6 +6411,432 @@ const TSpan = props => {
6411
6411
 
6412
6412
  /***/ }),
6413
6413
 
6414
+ /***/ "../../victory-core/es/victory-theme/clean.js":
6415
+ /*!****************************************************!*\
6416
+ !*** ../../victory-core/es/victory-theme/clean.js ***!
6417
+ \****************************************************/
6418
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6419
+
6420
+ "use strict";
6421
+ __webpack_require__.r(__webpack_exports__);
6422
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6423
+ /* harmony export */ "clean": function() { return /* binding */ clean; }
6424
+ /* harmony export */ });
6425
+ // *
6426
+ // * Colors
6427
+ // *
6428
+
6429
+ const gray = {
6430
+ white: "#FFFFFF",
6431
+ "50": "#FAFAFA",
6432
+ "100": "#F2F2F2",
6433
+ "200": "#E8E8E8",
6434
+ "300": "#E0E0E0",
6435
+ "400": "#D1D1D1",
6436
+ "500": "#757575",
6437
+ "600": "#5C5C5C",
6438
+ "700": "#424242",
6439
+ "800": "#333333",
6440
+ "900": "#292929",
6441
+ black: "#0F0F0F"
6442
+ };
6443
+ const yellow = {
6444
+ "100": "#FFEAB6",
6445
+ "300": "#FFD66E",
6446
+ "500": "#FCB400",
6447
+ "900": "#B87503"
6448
+ };
6449
+ const orange = {
6450
+ "100": "#FEE2D5",
6451
+ "300": "#FFA981",
6452
+ "500": "#FF6F2C",
6453
+ "900": "#D74D26"
6454
+ };
6455
+ const red = {
6456
+ "100": "#FFDCE5",
6457
+ "300": "#FF9EB7",
6458
+ "500": "#F82B60",
6459
+ "900": "#BA1E45"
6460
+ };
6461
+ const pink = {
6462
+ "100": "#FFDAF6",
6463
+ "300": "#F99DE2",
6464
+ "500": "#FF08C2",
6465
+ "900": "#B2158B"
6466
+ };
6467
+ const purple = {
6468
+ "100": "#EDE3FE",
6469
+ "300": "#CDB0FF",
6470
+ "500": "#8B46FF",
6471
+ "900": "#6B1CB0"
6472
+ };
6473
+ const blue = {
6474
+ "100": "#CFDFFF",
6475
+ "300": "#9CC7FF",
6476
+ "500": "#2D7FF9",
6477
+ "900": "#2750AE"
6478
+ };
6479
+ const cyan = {
6480
+ "100": "#D0F0FD",
6481
+ "300": "#77D1F3",
6482
+ "500": "#18BFFF",
6483
+ "900": "#0B76B7"
6484
+ };
6485
+ const teal = {
6486
+ "100": "#C2F5E9",
6487
+ "300": "#72DDC3",
6488
+ "500": "#20D9D2",
6489
+ "900": "#06A09B"
6490
+ };
6491
+ const green = {
6492
+ "100": "#D1F7C4",
6493
+ "300": "#93E088",
6494
+ "500": "#20C933",
6495
+ "900": "#338A17"
6496
+ };
6497
+ const colors = [blue["500"], pink["500"], teal["500"], purple["500"], green["500"], orange["500"], cyan["500"], red["500"], yellow["500"]];
6498
+ // *
6499
+ // * Typography
6500
+ // *
6501
+ const sansSerif = "'Inter', 'Helvetica Neue', 'Seravek', 'Helvetica', sans-serif";
6502
+ const letterSpacing = "normal";
6503
+ const fontSize = 12;
6504
+ // *
6505
+ // * Layout
6506
+ // *
6507
+ const padding = 8;
6508
+ const baseProps = {
6509
+ width: 450,
6510
+ height: 300,
6511
+ padding: 50,
6512
+ colorScale: colors
6513
+ };
6514
+ // *
6515
+ // * Labels
6516
+ // *
6517
+ const baseLabelStyles = {
6518
+ fontFamily: sansSerif,
6519
+ fontSize,
6520
+ fontWeight: 300,
6521
+ letterSpacing,
6522
+ padding,
6523
+ fill: gray["900"],
6524
+ stroke: "transparent"
6525
+ };
6526
+ const centeredLabelStyles = Object.assign({
6527
+ textAnchor: "middle"
6528
+ }, baseLabelStyles);
6529
+
6530
+ // *
6531
+ // * Strokes
6532
+ // *
6533
+ const strokeDasharray = "10, 5";
6534
+ const strokeLinecap = "round";
6535
+ const strokeLinejoin = "round";
6536
+ const borderRadius = 1;
6537
+ // *
6538
+ // * Theme
6539
+ // *
6540
+ const clean = {
6541
+ area: Object.assign({
6542
+ style: {
6543
+ data: {
6544
+ fill: cyan["500"]
6545
+ },
6546
+ labels: baseLabelStyles
6547
+ }
6548
+ }, baseProps),
6549
+ axis: Object.assign({
6550
+ style: {
6551
+ axis: {
6552
+ fill: "transparent",
6553
+ stroke: gray["300"],
6554
+ strokeWidth: 1,
6555
+ strokeLinecap,
6556
+ strokeLinejoin
6557
+ },
6558
+ axisLabel: Object.assign({}, centeredLabelStyles, {
6559
+ padding,
6560
+ stroke: "transparent"
6561
+ }),
6562
+ grid: {
6563
+ fill: "none",
6564
+ stroke: "none",
6565
+ painterEvents: "painted"
6566
+ },
6567
+ ticks: {
6568
+ fill: "transparent",
6569
+ size: 5,
6570
+ stroke: "transparent"
6571
+ },
6572
+ tickLabels: baseLabelStyles
6573
+ }
6574
+ }, baseProps),
6575
+ polarAxis: Object.assign({
6576
+ style: {
6577
+ axis: {
6578
+ stroke: gray["300"]
6579
+ },
6580
+ grid: {
6581
+ stroke: gray["200"],
6582
+ strokeDasharray,
6583
+ strokeLinecap,
6584
+ strokeLinejoin,
6585
+ pointerEvents: "painted"
6586
+ },
6587
+ ticks: {
6588
+ fill: "transparent",
6589
+ size: 5,
6590
+ stroke: gray["200"],
6591
+ strokeWidth: 1,
6592
+ strokeLinecap,
6593
+ strokeLinejoin
6594
+ },
6595
+ tickLabels: baseLabelStyles
6596
+ }
6597
+ }),
6598
+ polarDependentAxis: Object.assign({
6599
+ style: {
6600
+ axis: {
6601
+ stroke: gray["300"]
6602
+ },
6603
+ grid: {
6604
+ stroke: gray["200"],
6605
+ strokeDasharray,
6606
+ strokeLinecap,
6607
+ strokeLinejoin,
6608
+ pointerEvents: "painted"
6609
+ },
6610
+ ticks: {
6611
+ fill: "transparent",
6612
+ size: 5,
6613
+ stroke: gray["200"],
6614
+ strokeWidth: 1,
6615
+ strokeLinecap,
6616
+ strokeLinejoin
6617
+ },
6618
+ tickLabels: baseLabelStyles
6619
+ }
6620
+ }),
6621
+ bar: Object.assign({
6622
+ style: {
6623
+ data: {
6624
+ fill: blue["500"],
6625
+ padding,
6626
+ strokeWidth: 0
6627
+ },
6628
+ labels: baseLabelStyles
6629
+ },
6630
+ cornerRadius: {
6631
+ top: borderRadius
6632
+ }
6633
+ }, baseProps),
6634
+ boxplot: Object.assign({
6635
+ style: {
6636
+ max: {
6637
+ padding,
6638
+ stroke: gray["400"],
6639
+ strokeWidth: 2
6640
+ },
6641
+ maxLabels: Object.assign({}, baseLabelStyles, {
6642
+ padding: 3
6643
+ }),
6644
+ median: {
6645
+ padding,
6646
+ stroke: gray.white,
6647
+ strokeWidth: 2
6648
+ },
6649
+ medianLabels: Object.assign({}, baseLabelStyles, {
6650
+ padding: 3
6651
+ }),
6652
+ min: {
6653
+ padding,
6654
+ stroke: gray["400"],
6655
+ strokeWidth: 2
6656
+ },
6657
+ minLabels: Object.assign({}, baseLabelStyles, {
6658
+ padding: 3
6659
+ }),
6660
+ q1: {
6661
+ padding,
6662
+ fill: teal["500"],
6663
+ rx: borderRadius
6664
+ },
6665
+ q1Labels: Object.assign({}, baseLabelStyles, {
6666
+ padding: 3
6667
+ }),
6668
+ q3: {
6669
+ padding,
6670
+ fill: teal["500"],
6671
+ rx: borderRadius
6672
+ },
6673
+ q3Labels: Object.assign({}, baseLabelStyles, {
6674
+ padding: 3
6675
+ })
6676
+ },
6677
+ boxWidth: 20
6678
+ }, baseProps),
6679
+ candlestick: Object.assign({
6680
+ style: {
6681
+ data: {
6682
+ stroke: gray["300"],
6683
+ strokeWidth: 0,
6684
+ rx: borderRadius
6685
+ },
6686
+ labels: Object.assign({}, baseLabelStyles, {
6687
+ padding: 5
6688
+ })
6689
+ },
6690
+ candleColors: {
6691
+ positive: teal["500"],
6692
+ negative: orange["500"]
6693
+ },
6694
+ wickStrokeWidth: 2
6695
+ }, baseProps),
6696
+ chart: baseProps,
6697
+ errorbar: Object.assign({
6698
+ borderWidth: 8,
6699
+ style: {
6700
+ data: {
6701
+ fill: "transparent",
6702
+ opacity: 1,
6703
+ stroke: gray["700"],
6704
+ strokeWidth: 2,
6705
+ strokeLinecap
6706
+ },
6707
+ labels: baseLabelStyles
6708
+ }
6709
+ }, baseProps),
6710
+ group: Object.assign({
6711
+ colorScale: colors
6712
+ }, baseProps),
6713
+ histogram: Object.assign({
6714
+ style: {
6715
+ data: {
6716
+ fill: cyan["500"],
6717
+ stroke: "transparent",
6718
+ strokeWidth: 0
6719
+ },
6720
+ labels: baseLabelStyles
6721
+ },
6722
+ binSpacing: 4,
6723
+ cornerRadius: {
6724
+ top: borderRadius
6725
+ }
6726
+ }, baseProps),
6727
+ label: baseLabelStyles,
6728
+ legend: {
6729
+ colorScale: colors,
6730
+ gutter: 10,
6731
+ orientation: "vertical",
6732
+ titleOrientation: "top",
6733
+ style: {
6734
+ data: {
6735
+ type: "circle"
6736
+ },
6737
+ labels: {
6738
+ ...baseLabelStyles,
6739
+ fontSize: 14
6740
+ },
6741
+ title: Object.assign({}, baseLabelStyles, {
6742
+ padding,
6743
+ fontSize: 20
6744
+ }),
6745
+ border: {
6746
+ stroke: gray["200"],
6747
+ strokeWidth: 2,
6748
+ padding: 16
6749
+ }
6750
+ }
6751
+ },
6752
+ line: Object.assign({
6753
+ style: {
6754
+ data: {
6755
+ fill: "transparent",
6756
+ opacity: 1,
6757
+ stroke: pink["500"],
6758
+ strokeWidth: 2,
6759
+ strokeLinecap,
6760
+ strokeLinejoin
6761
+ },
6762
+ labels: baseLabelStyles
6763
+ }
6764
+ }, baseProps),
6765
+ pie: Object.assign({
6766
+ style: {
6767
+ data: {
6768
+ padding,
6769
+ stroke: gray.white,
6770
+ strokeWidth: 1
6771
+ },
6772
+ labels: Object.assign({}, baseLabelStyles, {
6773
+ padding: 20
6774
+ })
6775
+ },
6776
+ colorScale: colors,
6777
+ cornerRadius: borderRadius
6778
+ }, baseProps),
6779
+ scatter: Object.assign({
6780
+ style: {
6781
+ data: {
6782
+ fill: purple["500"],
6783
+ opacity: 1,
6784
+ stroke: "transparent",
6785
+ strokeWidth: 0
6786
+ },
6787
+ labels: baseLabelStyles
6788
+ }
6789
+ }, baseProps),
6790
+ stack: Object.assign({
6791
+ colorScale: colors
6792
+ }, baseProps),
6793
+ tooltip: {
6794
+ style: Object.assign({}, baseLabelStyles, {
6795
+ padding: 0,
6796
+ pointerEvents: "none"
6797
+ }),
6798
+ flyoutStyle: {
6799
+ stroke: gray["500"],
6800
+ strokeWidth: 2,
6801
+ fill: gray.white,
6802
+ pointerEvents: "none"
6803
+ },
6804
+ flyoutPadding: {
6805
+ top: 8,
6806
+ bottom: 8,
6807
+ left: 16,
6808
+ right: 16
6809
+ },
6810
+ cornerRadius: borderRadius,
6811
+ pointerLength: 4
6812
+ },
6813
+ voronoi: Object.assign({
6814
+ style: {
6815
+ data: {
6816
+ fill: red["100"],
6817
+ stroke: red["500"],
6818
+ strokeWidth: 2
6819
+ },
6820
+ labels: Object.assign({}, baseLabelStyles, {
6821
+ padding: 5,
6822
+ pointerEvents: "none"
6823
+ }),
6824
+ flyout: {
6825
+ stroke: gray["900"],
6826
+ strokeWidth: 1,
6827
+ fill: gray["100"],
6828
+ pointerEvents: "none"
6829
+ },
6830
+ padding: {
6831
+ left: 2,
6832
+ bottom: 2
6833
+ }
6834
+ }
6835
+ }, baseProps)
6836
+ };
6837
+
6838
+ /***/ }),
6839
+
6414
6840
  /***/ "../../victory-core/es/victory-theme/grayscale.js":
6415
6841
  /*!********************************************************!*\
6416
6842
  !*** ../../victory-core/es/victory-theme/grayscale.js ***!
@@ -6991,12 +7417,15 @@ __webpack_require__.r(__webpack_exports__);
6991
7417
  /* harmony export */ });
6992
7418
  /* harmony import */ var _grayscale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./grayscale */ "../../victory-core/es/victory-theme/grayscale.js");
6993
7419
  /* harmony import */ var _material__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./material */ "../../victory-core/es/victory-theme/material.js");
7420
+ /* harmony import */ var _clean__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./clean */ "../../victory-core/es/victory-theme/clean.js");
7421
+
6994
7422
 
6995
7423
 
6996
7424
 
6997
7425
  const VictoryTheme = {
6998
7426
  grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_0__.grayscale,
6999
- material: _material__WEBPACK_IMPORTED_MODULE_1__.material
7427
+ material: _material__WEBPACK_IMPORTED_MODULE_1__.material,
7428
+ clean: _clean__WEBPACK_IMPORTED_MODULE_2__.clean
7000
7429
  };
7001
7430
 
7002
7431
  /***/ }),
@@ -9478,6 +9907,7 @@ __webpack_require__.r(__webpack_exports__);
9478
9907
  /* eslint-disable no-magic-numbers */
9479
9908
  // Based on measuring specific character widths
9480
9909
  // as in the following example https://bl.ocks.org/tophtucker/62f93a4658387bb61e4510c37e2e97cf
9910
+ // For new fonts: pull gist, open index.html locally, add font files (if not generic), enter font name in `font-family` input
9481
9911
  // prettier-ignore
9482
9912
  const fonts = {
9483
9913
  "American Typewriter": {
@@ -9536,6 +9966,10 @@ const fonts = {
9536
9966
  widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.2359375, 0.2234375, 0.3921875, 0.7125, 0.49375, 0.8859375, 0.771875, 0.2125, 0.3078125, 0.309375, 0.375, 0.4234375, 0.234375, 0.3125, 0.234375, 0.3, 0.5828125, 0.365625, 0.434375, 0.3921875, 0.5234375, 0.3984375, 0.5125, 0.4328125, 0.46875, 0.5125, 0.234375, 0.234375, 0.515625, 0.4234375, 0.515625, 0.340625, 0.7609375, 0.7359375, 0.6359375, 0.721875, 0.8125, 0.6375, 0.5875, 0.8078125, 0.853125, 0.4296875, 0.503125, 0.78125, 0.609375, 0.9609375, 0.8515625, 0.8140625, 0.6125, 0.8140625, 0.71875, 0.49375, 0.7125, 0.76875, 0.771875, 1.125, 0.7765625, 0.7734375, 0.65625, 0.321875, 0.3078125, 0.321875, 0.3546875, 0.5, 0.3375, 0.446875, 0.5359375, 0.45, 0.5296875, 0.4546875, 0.425, 0.4921875, 0.54375, 0.2671875, 0.240625, 0.5390625, 0.25, 0.815625, 0.5375, 0.5234375, 0.5390625, 0.5421875, 0.365625, 0.36875, 0.35625, 0.5171875, 0.5015625, 0.75, 0.5, 0.509375, 0.44375, 0.2421875, 0.14375, 0.2421875, 0.35],
9537
9967
  avg: 0.5116447368421051
9538
9968
  },
9969
+ "Inter": {
9970
+ widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.2796875, 0.2890625, 0.4671875, 0.634375, 0.6421875, 0.9828125, 0.6453125, 0.3, 0.365625, 0.365625, 0.5015625, 0.6625, 0.2890625, 0.4609375, 0.2890625, 0.3609375, 0.63125, 0.4078125, 0.6109375, 0.61875, 0.646875, 0.59375, 0.6203125, 0.5671875, 0.61875, 0.6203125, 0.2890625, 0.303125, 0.6625, 0.6625, 0.6625, 0.5125, 0.9671875, 0.690625, 0.6546875, 0.73125, 0.721875, 0.6015625, 0.590625, 0.746875, 0.74375, 0.26875, 0.571875, 0.671875, 0.565625, 0.9046875, 0.7546875, 0.765625, 0.6390625, 0.765625, 0.64375, 0.6421875, 0.646875, 0.7453125, 0.690625, 0.9859375, 0.6828125, 0.6796875, 0.6296875, 0.365625, 0.3609375, 0.365625, 0.471875, 0.45625, 0.3234375, 0.5625, 0.6125, 0.571875, 0.6125, 0.584375, 0.3703125, 0.6140625, 0.5921875, 0.2421875, 0.2548828125, 0.55, 0.2421875, 0.8765625, 0.5921875, 0.6, 0.6125, 0.6125, 0.3765625, 0.528125, 0.328125, 0.5921875, 0.5625, 0.81875, 0.546875, 0.5625, 0.553125, 0.4265625, 0.3328125, 0.4265625, 0.6625],
9971
+ avg: 0.5624362664473683
9972
+ },
9539
9973
  "Montserrat": {
9540
9974
  widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.2625, 0.2609375, 0.3734375, 0.696875, 0.615625, 0.8296875, 0.6703125, 0.203125, 0.3296875, 0.3296875, 0.3875, 0.575, 0.2125, 0.3828125, 0.2125, 0.3953125, 0.6625, 0.3625, 0.56875, 0.5640625, 0.6625, 0.5671875, 0.609375, 0.5890625, 0.6390625, 0.609375, 0.2125, 0.2125, 0.575, 0.575, 0.575, 0.5671875, 1.034375, 0.7171875, 0.7546875, 0.7203125, 0.8265625, 0.6703125, 0.634375, 0.7734375, 0.8140625, 0.303125, 0.5078125, 0.7125, 0.5890625, 0.95625, 0.8140625, 0.8390625, 0.71875, 0.8390625, 0.7234375, 0.615625, 0.575, 0.7921875, 0.6984375, 1.1125, 0.65625, 0.6359375, 0.6515625, 0.31875, 0.396875, 0.31875, 0.5765625, 0.5, 0.6, 0.590625, 0.678125, 0.5640625, 0.678125, 0.6046875, 0.375, 0.6875, 0.678125, 0.2703125, 0.365625, 0.6015625, 0.2703125, 1.0625, 0.678125, 0.628125, 0.678125, 0.678125, 0.4015625, 0.4890625, 0.40625, 0.6734375, 0.5421875, 0.8796875, 0.534375, 0.5671875, 0.5125, 0.334375, 0.2953125, 0.334375, 0.575],
9541
9975
  avg: 0.571792763157895